VirtualBox

Changeset 20971 in vbox


Ignore:
Timestamp:
Jun 26, 2009 1:43:58 PM (16 years ago)
Author:
vboxsync
Message:

Python: Darwin multibin build

Location:
trunk/src/libs/xpcom18a4/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/Makefile.kmk

    r20967 r20971  
    6161        $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL)
    6262
     63ifeq ($(KBUILD_TARGET),darwin)
     64 ## @todo kBuild - this ain't working: VBoxPython_DLLSUFF.darwin = .so
     65 VBoxPythonBase_DLLSUFF = .so
     66endif
     67
    6368# Python 2.3 version
    6469VBoxPython23_EXTENDS    = VBoxPythonBase
     
    8287
    8388VBoxPython24_DEFS       = VBOX_PYXPCOM_VERSIONED
    84 VBoxPython24_INCS       =  $(VBOX_PYTHON24_INC)
    85 VBoxPython24_LIBS       =  $(VBOX_PYTHON24_LIB)
     89VBoxPython24_INCS       = $(VBOX_PYTHON24_INC)
     90VBoxPython24_LIBS       = $(VBOX_PYTHON24_LIB)
    8691
    8792ifdef VBOX_PYTHON24_INC
     
    9398VBoxPython25_EXTENDS_BY = appending
    9499VBoxPython25_NAME       = VBoxPython2_5
    95 VBoxPython25_TEMPLATE   = XPCOM
     100if "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "darwin.x86"
     101 VBoxPython25_TEMPLATE   = XPCOMOSX105
     102else
     103 VBoxPython25_TEMPLATE   = XPCOM
     104endif
     105VBoxPython25_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
    96107
    97108VBoxPython25_DEFS       = VBOX_PYXPCOM_VERSIONED
  • trunk/src/libs/xpcom18a4/python/gen_python_deps.py

    r20952 r20971  
    2020
    2121versions = ["2.3", "2.4", "2.5", "2.6", "2.7", "2.8"]
    22 prefixes = ["/usr", "/usr/local", "/opt"]
     22prefixes = ["/usr", "/usr/local", "/opt", "/opt/local"]
    2323known = {}
    2424
    25 def checkPair(p,v):
     25def checkPair(p,v,dllpre,dllsuff):
    2626    file =  os.path.join(p, "include", "python"+v, "Python.h")
    2727    # or just stat()?
     
    2929        return None
    3030    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)]
    3232
    3333def 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   
    3441    for v in versions:
    3542        for p in prefixes:
    36             c = checkPair(p, v)
     43            c = checkPair(p, v, dllpre, dllsuff)
    3744            if c is not None:
    3845                known[v] = c
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette