Changeset 20971 in vbox
- Timestamp:
- Jun 26, 2009 1:43:58 PM (16 years ago)
- Location:
- trunk/src/libs/xpcom18a4/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/Makefile.kmk
r20967 r20971 61 61 $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 62 62 63 ifeq ($(KBUILD_TARGET),darwin) 64 ## @todo kBuild - this ain't working: VBoxPython_DLLSUFF.darwin = .so 65 VBoxPythonBase_DLLSUFF = .so 66 endif 67 63 68 # Python 2.3 version 64 69 VBoxPython23_EXTENDS = VBoxPythonBase … … 82 87 83 88 VBoxPython24_DEFS = VBOX_PYXPCOM_VERSIONED 84 VBoxPython24_INCS = 85 VBoxPython24_LIBS = 89 VBoxPython24_INCS = $(VBOX_PYTHON24_INC) 90 VBoxPython24_LIBS = $(VBOX_PYTHON24_LIB) 86 91 87 92 ifdef VBOX_PYTHON24_INC … … 93 98 VBoxPython25_EXTENDS_BY = appending 94 99 VBoxPython25_NAME = VBoxPython2_5 95 VBoxPython25_TEMPLATE = XPCOM 100 if "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "darwin.x86" 101 VBoxPython25_TEMPLATE = XPCOMOSX105 102 else 103 VBoxPython25_TEMPLATE = XPCOM 104 endif 105 VBoxPython25_LDFLAGS.darwin = -install_name /Users/vbox/nike/ws/out/darwin.x86/debug/dist/VirtualBox.app/Contents/MacOS/VBoxPython2_5.so 106 #VBoxPython25_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxPython2_5.so 96 107 97 108 VBoxPython25_DEFS = VBOX_PYXPCOM_VERSIONED -
trunk/src/libs/xpcom18a4/python/gen_python_deps.py
r20952 r20971 20 20 21 21 versions = ["2.3", "2.4", "2.5", "2.6", "2.7", "2.8"] 22 prefixes = ["/usr", "/usr/local", "/opt" ]22 prefixes = ["/usr", "/usr/local", "/opt", "/opt/local"] 23 23 known = {} 24 24 25 def checkPair(p,v ):25 def checkPair(p,v,dllpre,dllsuff): 26 26 file = os.path.join(p, "include", "python"+v, "Python.h") 27 27 # or just stat()? … … 29 29 return None 30 30 return [os.path.join(p, "include", "python"+v), 31 os.path.join(p, "lib", "libpython"+v+".so")]31 os.path.join(p, "lib", dllpre+"python"+v+dllsuff)] 32 32 33 33 def main(argv): 34 dllpre = "lib" 35 dllsuff = ".so" 36 if sys.platform == 'darwin': 37 prefixes.insert(0, '/Developer/SDKs/MacOSX10.4u.sdk/usr') 38 prefixes.insert(0, '/Developer/SDKs/MacOSX10.5.sdk/usr') 39 dllsuff = '.dylib' 40 34 41 for v in versions: 35 42 for p in prefixes: 36 c = checkPair(p, v )43 c = checkPair(p, v, dllpre, dllsuff) 37 44 if c is not None: 38 45 known[v] = c
Note:
See TracChangeset
for help on using the changeset viewer.