VirtualBox

Changeset 11595 in vbox for trunk/src/libs


Ignore:
Timestamp:
Aug 23, 2008 7:56:02 PM (16 years ago)
Author:
vboxsync
Message:

Try find the python libraries too. Note about why it won't easily link on the mac.

File:
1 edited

Legend:

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

    r11594 r11595  
    13101310# Find the Python headers for the Python<->XPCOM bridge if enabled.
    13111311ifdef VBOX_WITH_PYTHON
    1312   ifndef VBOX_PATH_PYTHON_INC
    1313    VBOX_PATH_PYTHON_INC := $(patsubst %/Python.h,%, $(lastword $(sort $(wildcard \
    1314         /usr/include/python2.*/Python.h \
    1315         /usr/local/include/python2.*/Python.h \
    1316         ))))
    1317    ifeq ($(VBOX_PATH_PYTHON_INC),)
    1318     $(warning Unable to determin the python include directory (VBOX_PATH_PYTHON_INC).)
    1319    endif
     1312 ifndef VBOX_PATH_PYTHON_INC
     1313  VBOX_PATH_PYTHON_INC := $(patsubst %/Python.h,%, $(lastword $(sort $(wildcard \
     1314        /usr/include/python2.*/Python.h \
     1315        /usr/local/include/python2.*/Python.h \
     1316        ))))
     1317  ifeq ($(VBOX_PATH_PYTHON_INC),)
     1318   $(warning Unable to determin the python include directory (VBOX_PATH_PYTHON_INC).)
     1319  endif
     1320 endif
     1321 VBOX_PYTHON_VER := 2$(lastword $(subst ., .,$(VBOX_PATH_PYTHON_INC)))
     1322 ifndef VBOX_LIB_PYTHON
     1323  VBOX_LIB_PYTHON := $(firstword $(wildcard \
     1324        /usr/lib/libpython$(VBOX_PYTHON_VER)$(SUFF_DLL) \
     1325        /usr/local/lib/libpython$(VBOX_PYTHON_VER)$(SUFF_DLL) \
     1326        /usr/lib/libpython2$(SUFF_DLL) \
     1327        /usr/local/lib/libpython2$(SUFF_DLL) \
     1328        /usr/lib/libpython$(SUFF_DLL) \
     1329        /usr/local/lib/libpython$(SUFF_DLL) \
     1330        ))
     1331  ifeq ($(VBOX_LIB_PYTHON),)
     1332   $(warning Unable to determin the python library (VBOX_LIB_PYTHON).)
     1333  endif
    13201334 endif
    13211335 DLLS += VBoxPython
     
    13281342VBoxPython_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API VBOX_PYXPCOM
    13291343VBoxPython_INCS = \
    1330         $(VBOX_PATH_PYTHON_INC) \
    1331         python/src
     1344        python/src \
     1345        $(VBOX_PATH_PYTHON_INC)
    13321346VBoxPython_SOURCES = \
    13331347        python/src/module/_xpcom.cpp \
     
    13531367        python/src/TypeObject.cpp \
    13541368        python/src/VariantUtils.cpp
    1355 VBoxPython_LIBS = $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL)
     1369VBoxPython_LIBS = \
     1370        $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) \
     1371        $(VBOX_LIB_PYTHON)
     1372
     1373## @todo we'll have to use the 10.5 SDK if we wish to build this. :-/
     1374#VBoxPython_DEFS.darwin = MAC_OS_X_VERSION_MIN_REQUIRED=1050 MAC_OS_X_VERSION_MAX_ALLOWED=1050
     1375#VBoxPython_CXXFLAGS.darwin = -mmacosx-version-min=10.5 -isysroot $(subst MacOSX10.4u,MacOSX10.5,$(VBOX_PATH_MACOSX_SDK)) -framework Python
     1376#VBoxPython_LDFLAGS.darwin  = -mmacosx-version-min=10.5 -isysroot $(subst MacOSX10.4u,MacOSX10.5,$(VBOX_PATH_MACOSX_SDK)) -framework Python
     1377
    13561378
    13571379# Python Client Module - the Python bits.
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