Changeset 12369 in vbox
- Timestamp:
- Sep 10, 2008 5:55:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Makefile.kmk
r12224 r12369 1292 1292 # Find the Python headers for the Python<->XPCOM bridge if enabled. 1293 1293 ifdef VBOX_WITH_PYTHON 1294 ifndef VBOX_PATH_PYTHON_INC 1295 VBOX_PATH_PYTHON_INC := $(patsubst %/Python.h,%, $(lastword $(sort $(wildcard \ 1296 /usr/include/python2.*/Python.h \ 1297 /usr/local/include/python2.*/Python.h \ 1298 )))) 1299 ifeq ($(VBOX_PATH_PYTHON_INC),) 1300 $(warning Unable to determine the python include directory (VBOX_PATH_PYTHON_INC).) 1294 if "$(KBUILD_TARGET)" == "darwin" && !defined(VBOX_PATH_PYTHON_INC) && !defined(VBOX_LIB_PYTHON) 1295 ifndef VBOX_PYTHON_FRAMEWORK 1296 ifneq ($(VBOX_DEF_MACOSX_VERSION_MIN),10.4) 1297 $(error we are assuming 10.4 here; VBOX_DEF_MACOSX_VERSION_MIN=$(VBOX_DEF_MACOSX_VERSION_MIN)) 1298 endif 1299 # Does -framework really work with CXXFLAGS and CFLAGS? 1300 VBOX_PYTHON_FRAMEWORK := -framework Python 1301 VBOX_PATH_PYTHON_INC := $(VBOX_PATH_MACOSX_SDK_10_4)/System/Library/Frameworks/Python.framework/Headers 1301 1302 endif 1302 endif 1303 VBOX_PYTHON_VER := 2$(lastword $(subst ., .,$(VBOX_PATH_PYTHON_INC))) 1304 ifndef VBOX_LIB_PYTHON 1305 VBOX_TMP := $(if $(eq $(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),solaris.amd64),64/,) 1306 VBOX_LIB_PYTHON := $(firstword $(wildcard \ 1307 /usr/lib/$(VBOX_TMP)libpython$(VBOX_PYTHON_VER)$(SUFF_DLL) \ 1308 /usr/local/lib/$(VBOX_TMP)libpython$(VBOX_PYTHON_VER)$(SUFF_DLL) \ 1309 /usr/lib/$(VBOX_TMP)libpython2$(SUFF_DLL) \ 1310 /usr/local/lib/$(VBOX_TMP)libpython2$(SUFF_DLL) \ 1311 /usr/lib/$(VBOX_TMP)libpython$(SUFF_DLL) \ 1312 /usr/local/lib/$(VBOX_TMP)libpython$(SUFF_DLL) \ 1313 )) 1314 ifeq ($(VBOX_LIB_PYTHON),) 1315 $(warning Unable to determine the python library (VBOX_LIB_PYTHON).) 1303 else # !darwin || configured darwin 1304 ifndef VBOX_PATH_PYTHON_INC 1305 VBOX_PATH_PYTHON_INC := $(patsubst %/Python.h,%, $(lastword $(sort $(wildcard \ 1306 /usr/include/python2.*/Python.h \ 1307 /usr/local/include/python2.*/Python.h \ 1308 )))) 1309 ifeq ($(VBOX_PATH_PYTHON_INC),) 1310 $(warning Unable to determine the python include directory (VBOX_PATH_PYTHON_INC).) 1311 endif 1316 1312 endif 1313 VBOX_PYTHON_VER := 2$(lastword $(subst ., .,$(VBOX_PATH_PYTHON_INC))) 1314 ifndef VBOX_LIB_PYTHON 1315 VBOX_TMP := $(if $(eq $(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),solaris.amd64),64/,) 1316 VBOX_LIB_PYTHON := $(firstword $(wildcard \ 1317 /usr/lib/$(VBOX_TMP)libpython$(VBOX_PYTHON_VER)$(SUFF_DLL) \ 1318 /usr/local/lib/$(VBOX_TMP)libpython$(VBOX_PYTHON_VER)$(SUFF_DLL) \ 1319 /usr/lib/$(VBOX_TMP)libpython2$(SUFF_DLL) \ 1320 /usr/local/lib/$(VBOX_TMP)libpython2$(SUFF_DLL) \ 1321 /usr/lib/$(VBOX_TMP)libpython$(SUFF_DLL) \ 1322 /usr/local/lib/$(VBOX_TMP)libpython$(SUFF_DLL) \ 1323 )) 1324 ifeq ($(VBOX_LIB_PYTHON),) 1325 $(warning Unable to determine the python library (VBOX_LIB_PYTHON).) 1326 endif 1327 endif # !darwin || configured darwin 1317 1328 endif 1318 1329 ifndef VBOX_ONLY_SDK … … 1328 1339 VBOX_PYXPCOM VBOX_WITH_XPCOM 1329 1340 VBoxPython_NAME.darwin = VBoxPython2_3 1341 VBoxPython_CFLAGS.darwin = $(VBOX_PYTHON_FRAMEWORK) 1342 VBoxPython_CXXFLAGS.darwin = $(VBOX_PYTHON_FRAMEWORK) 1343 VBoxPython_LDFLAGS.darwin = $(VBOX_PYTHON_FRAMEWORK) 1330 1344 VBoxPython_INCS = \ 1331 1345 python/src \
Note:
See TracChangeset
for help on using the changeset viewer.