VirtualBox

Changeset 12369 in vbox


Ignore:
Timestamp:
Sep 10, 2008 5:55:26 PM (16 years ago)
Author:
vboxsync
Message:

VBoxPython/mac: first bit - building against the 10.4 framework.

File:
1 edited

Legend:

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

    r12224 r12369  
    12921292# Find the Python headers for the Python<->XPCOM bridge if enabled.
    12931293ifdef 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
    13011302  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
    13161312  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
    13171328 endif
    13181329 ifndef VBOX_ONLY_SDK
     
    13281339                  VBOX_PYXPCOM VBOX_WITH_XPCOM
    13291340VBoxPython_NAME.darwin = VBoxPython2_3
     1341VBoxPython_CFLAGS.darwin   = $(VBOX_PYTHON_FRAMEWORK)
     1342VBoxPython_CXXFLAGS.darwin = $(VBOX_PYTHON_FRAMEWORK)
     1343VBoxPython_LDFLAGS.darwin  = $(VBOX_PYTHON_FRAMEWORK)
    13301344VBoxPython_INCS = \
    13311345        python/src \
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