VirtualBox

Changeset 10057 in vbox


Ignore:
Timestamp:
Jul 1, 2008 1:54:58 AM (17 years ago)
Author:
vboxsync
Message:

Changed brute force _DEPS on each source to _INTERMEDIATES (PREREQS -> VBOX_MAIN_PREREQS).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Makefile.kmk

    r10056 r10057  
    7979        $(PATH_VBoxCOM)/VirtualBox_i.c \
    8080        $(PATH_VBoxCOM)/VirtualBox.tlb
    81 else
     81 VBOX_MAIN_PREREQS = $(PATH_VBoxCOM)/VirtualBox_i.c
     82else # xpcom
    8283 INSTALLS       += xpcom-components
    8384 IDLFILE         = $(VBOX_PATH_SDK)/idl/VirtualBox_XPCOM.idl
     
    9495    $(IDLTYPELIB)
    9596
    96 endif
     97 VBOX_MAIN_PREREQS = $(IDLTYPELIB) $(IDLHEADER)
     98endif # xpcom
    9799
    98100
     
    192194        adm \
    193195        devinfo
     196
     197VBoxSVC_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
    194198
    195199VBoxSVC_SOURCES = \
     
    289293        $(PATH_VBoxC) \
    290294        .
     295VBoxSVCM_INTERMEDIATES  = $(VBOX_MAIN_PREREQS)
    291296VBoxSVCM_SOURCES        = \
    292297        xpcom/server_module.cpp
     
    304309        $(APPEND) $@ _NSGetModule
    305310endif
     311VBoxSVCM_INTERMEDIATES = $(IDLHEADER)
    306312
    307313endif # VBOX_WITH_XPCOM
     
    373379        $(LIB_VMM) \
    374380        $(LIB_REM)
     381
     382VBoxC_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
    375383
    376384VBoxC_SOURCES = \
     
    457465#
    458466VBoxCOM_TEMPLATE        = VBOXMAINLIB
     467VBoxCOM_INTERMEDIATES   = $(VBOX_MAIN_PREREQS)
    459468VBoxCOM_SOURCES         = \
    460469        glue/com.cpp \
     
    477486
    478487#
    479 # Generate _DEPS on all sources which depends on generated headers.
    480 #
    481 ifeq ($(KBUILD_TARGET),win)
    482 PREREQS = $(PATH_VBoxCOM)/VirtualBox_i.c
    483 else
    484 PREREQS = $(IDLTYPELIB) $(IDLHEADER)
    485 endif
    486 
    487 # brute force way to ensure the prereqs are generated before anything is compiled.
    488 define def_src_deps
    489 $(src)_ORDERDEPS += $(PREREQS)
    490 endef
    491 $(foreach src,\
    492         $(VBoxC_SOURCES)   $(VBoxC_SOURCES.$(KBUILD_TARGET)) \
    493         $(VBoxSVC_SOURCES) $(VBoxSVC_SOURCES.$(KBUILD_TARGET)) \
    494         $(VBoxCOM_SOURCES) \
    495         ,$(eval $(value def_src_deps)))
    496 
    497 
    498 #
    499488# Embed XML Schema files to VBoxSVC
    500489#
    501 
    502490VBOX_XML_SCHEMA_H               = $(PATH_TARGET)/xml_VirtualBox_settings_xsd.h
    503491VBOX_XML_SCHEMA_COMMON_H        = $(PATH_TARGET)/xml_VirtualBox_settings_common_xsd.h
     
    667655endif
    668656
    669 # bird: anyone still using this? If not it's a gonner.
    670 ## Hack to work around wine's trouble with midl.exe and rc.exe (seems to be msvcrt.dll related)
    671 #gen: $(PREREQS)
    672 
    673657
    674658#
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