VirtualBox

Changeset 600 in vbox for trunk/Config.kmk


Ignore:
Timestamp:
Feb 4, 2007 6:37:29 PM (18 years ago)
Author:
vboxsync
Message:

VBOX_SUFF_DLL=.so/.dll/.dylib/.s.so. VBOX_WITH_XPCOM=1 for platforms using xpcom (VBOX_WITH_MAIN decides whether it's built or not). Some changes to VBOXMAINCLIENT - reversing VBoxXPCOM.so / VBoxXPCOMGlue.a is potentially dangerous but required for the darwin linker.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r586 r600  
    203203ifneq ($(filter darwin os2 freebsd,$(BUILD_TARGET)),)
    204204 #VBOX_WITH_VBOXBFE=
    205  VBOX_WITH_MAIN=
     205 ifeq ($(filter darwin,$(BUILD_TARGET)),)
     206  VBOX_WITH_MAIN=
     207 endif
    206208 VBOX_WITH_QTGUI=
    207209 VBOX_WITH_VBOXSDL=
     
    690692# XPCOM setup for all but win32.
    691693ifneq ($(BUILD_TARGET),win)
     694 VBOX_WITH_XPCOM      = 1
    692695 VBOX_XPIDL          ?= $(PATH_OBJ)/src/libs/xpcom18a4/xpidl/xpidl$(HOSTSUFF_EXE)
    693696 VBOX_PATH_XPCOM_IDL ?= $(PATH_BIN)/sdk/idl
     
    781784VBOX_SUFF_LIB = .a
    782785endif
     786VBOX_SUFF_DLL = $(SUFF_DLL)
    783787VBOXW32GUEST_SUFF_LIB = .lib
    784788VBOXLNX32GUEST_SUFF_LIB = .a
     
    14761480TEMPLATE_VBOXMAINCLIENT_INCS        = $(TEMPLATE_VBOXMAINEXE_INCS) \
    14771481        $(PATH_BIN)/sdk/include
    1478 TEMPLATE_VBOXMAINCLIENT_INCS.linux  = $(TEMPLATE_VBOXMAINEXE_INCS.linux) \
     1482ifdef VBOX_WITH_XPCOM
     1483TEMPLATE_VBOXMAINCLIENT_INCS       += \
    14791484    $(VBOX_XPCOM_INCS)
     1485endif
    14801486TEMPLATE_VBOXMAINCLIENT_LIBS        = $(TEMPLATE_VBOXMAINEXE_LIBS) \
    14811487    $(LIB_RUNTIME)
     
    14901496   $(PATH_SDK_WINPSDK_LIB)/Uuid.Lib
    14911497else
    1492  TEMPLATE_VBOXMAINCLIENT_LIBS.linux = $(TEMPLATE_VBOXMAINEXE_LIBS.linux) \
     1498 TEMPLATE_VBOXMAINCLIENT_LIBS = $(TEMPLATE_VBOXMAINEXE_LIBS) \
    14931499        $(PATH_LIB)/VBoxXPCOM$(VBOX_SUFF_LIB) \
    1494         $(PATH_BIN)/VBoxXPCOM.so \
    1495         $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB)
    1496 
     1500        $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB) \
     1501        $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) \
     1502        $(LIB_RUNTIME)
     1503
     1504 TEMPLATE_VBOXMAINCLIENT_DEFS = $(TEMPLATE_VBOXMAINEXE_DEFS) \
     1505        NDEBUG TRIMMED
     1506 ## Wonder why we compile main with defaults for these two and then drops it in the client executables...
     1507 TEMPLATE_VBOXMAINCLIENT_CXXFLAGS = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS) \
     1508        -fno-rtti -fno-exceptions
    14971509 TEMPLATE_VBOXMAINCLIENT_CXXFLAGS.linux = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS.linux) \
    1498         -DNDEBUG -DTRIMMED -Wall -fno-rtti -fno-exceptions \
    1499         -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
     1510        -pthread
     1511 TEMPLATE_VBOXMAINCLIENT_LDFLAGS.darwin = $(TEMPLATE_VBOXMAINEXE_LDFLAGS.darwin) \
     1512        -bind_at_load -framework Carbon
    15001513endif
    15011514
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