Changeset 11595 in vbox for trunk/src/libs
- Timestamp:
- Aug 23, 2008 7:56:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Makefile.kmk
r11594 r11595 1310 1310 # Find the Python headers for the Python<->XPCOM bridge if enabled. 1311 1311 ifdef 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 1320 1334 endif 1321 1335 DLLS += VBoxPython … … 1328 1342 VBoxPython_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API VBOX_PYXPCOM 1329 1343 VBoxPython_INCS = \ 1330 $(VBOX_PATH_PYTHON_INC)\1331 python/src1344 python/src \ 1345 $(VBOX_PATH_PYTHON_INC) 1332 1346 VBoxPython_SOURCES = \ 1333 1347 python/src/module/_xpcom.cpp \ … … 1353 1367 python/src/TypeObject.cpp \ 1354 1368 python/src/VariantUtils.cpp 1355 VBoxPython_LIBS = $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 1369 VBoxPython_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 1356 1378 1357 1379 # Python Client Module - the Python bits.
Note:
See TracChangeset
for help on using the changeset viewer.