VirtualBox

Changeset 12378 in vbox for trunk/src/libs/xpcom18a4


Ignore:
Timestamp:
Sep 10, 2008 8:59:47 PM (16 years ago)
Author:
vboxsync
Message:

xpcom/makefile: added a VBoxPython2_5 target for the mac.

File:
1 edited

Legend:

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

    r12376 r12378  
    215215TEMPLATE_XPCOMBLDPROG_LDFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_LDFLAGS.$(KBUILD_TARGET_ARCH))
    216216TEMPLATE_XPCOMBLDPROG_ORDERDEPS         = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst)))
     217
     218
     219#
     220# Template for building VBoxPhython against the Mac OS X 10.5 SDK.
     221# ASSUMES that the SDK bits are in the .darwin properties we're overriding below.
     222#
     223TEMPLATE_XPCOMOSX105                    = XPCOM libraries (shared) built against the Mac OS X 10.5 SDK
     224TEMPLATE_XPCOMOSX105_EXTENDS            = XPCOM
     225TEMPLATE_XPCOMOSX105_CXXFLAGS.darwin    = $(filter-out $(VBOX_DARWIN_DEF_SDK_CXXFLAGS),$(TEMPLATE_XPCOM_CXXFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_CXXFLAGS)
     226TEMPLATE_XPCOMOSX105_CFLAGS.darwin      = $(filter-out $(VBOX_DARWIN_DEF_SDK_CFLAGS),$(TEMPLATE_XPCOM_CFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_CFLAGS)
     227TEMPLATE_XPCOMOSX105_LDFLAGS.darwin     = $(filter-out $(VBOX_DARWIN_DEF_SDK_LDFLAGS),$(TEMPLATE_XPCOM_LDFLAGS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_LDFLAGS)
     228TEMPLATE_XPCOMOSX105_DEFS.darwin        = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_XPCOM_DEFS.darwin)) $(VBOX_DARWIN_DEF_SDK_10_5_DEFS)
     229TEMPLATE_XPCOMOSX105_INCS.darwin        = $(VBOX_PATH_MACOSX_SDK_10_5)/Developer/Headers/FlatCarbon
    217230
    218231
     
    12981311   endif
    12991312   # Does -framework really work with CXXFLAGS and CFLAGS?
    1300    VBOX_PYTHON_FRAMEWORK :=  -framework Python
     1313   VBOX_PYTHON_FRAMEWORK := -framework Python
    13011314   VBOX_PATH_PYTHON_INC := $(VBOX_PATH_MACOSX_SDK_10_4)/System/Library/Frameworks/Python.framework/Headers
    13021315  endif
     
    13731386        $(VBOX_LIB_PYTHON)
    13741387
    1375 ## @todo we'll have to use the 10.5 SDK if we wish to build this. :-/
    1376 #VBoxPython_DEFS.darwin = MAC_OS_X_VERSION_MIN_REQUIRED=1050 MAC_OS_X_VERSION_MAX_ALLOWED=1050
    1377 #VBoxPython_CXXFLAGS.darwin = -mmacosx-version-min=10.5 -isysroot $(subst MacOSX10.4u,MacOSX10.5,$(VBOX_PATH_MACOSX_SDK)) -framework Python
    1378 #VBoxPython_LDFLAGS.darwin  = -mmacosx-version-min=10.5 -isysroot $(subst MacOSX10.4u,MacOSX10.5,$(VBOX_PATH_MACOSX_SDK)) -framework Python
    1379 
     1388if defined(VBOX_WITH_VBOXPYTHON_FOR_OSX_10_5) && "$(KBUILD_TARGET)" == "darwin"
     1389# Same VBoxPython except built against the Mac OS X 10.5 SDK.
     1390DLLS += VBoxPython2_5
     1391VBoxPython2_5_EXTENDS = VBoxPython
     1392VBoxPython2_5_TEMPLATE = XPCOMOSX105
     1393VBoxPython2_5_NAME.darwin = VBoxPython2_5
     1394VBoxPython2_5_INCS = \
     1395        python/src \
     1396        $(VBOX_PATH_MACOSX_SDK_10_5)/System/Library/Frameworks/Python.framework/Headers
     1397endif
    13801398
    13811399# 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