VirtualBox

Changeset 9208 in vbox for trunk/src


Ignore:
Timestamp:
May 28, 2008 5:52:10 PM (17 years ago)
Author:
vboxsync
Message:

Use the (relatively) new INTERMEDIATES property to make sure the include files are all generated before the compiling starts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk

    r9178 r9208  
    678678XIDLFILE            = ../../Main/idl/VirtualBox.xidl
    679679
     680VirtualBox_INTERMEDIATES = $(WRAPPERSFILE)
     681
    680682
    681683# generated files we need to clean manually
     
    801803
    802804$(target)_GENSRCS_REAL += $(mocsrc)
     805## @todo The source should be added to GEN_SOURCES: $ (target)_GEN_SOURCES += $ (mocsrc)
    803806
    804807$(mocsrc): $(mochdr)
     
    822825
    823826$(target)_GENHDRS_REAL += $(mocinc)
     827$(target)_INTERMEDIATES += $(mocinc)
    824828
    825829$(mocobj): $(mocinc)
    826830
    827 .NOTPARALLEL: $(mocinc)
    828831$(mocinc): $(mocsrc)
    829832        $$(call MSG_TOOL,moc,$(target),$(mocsrc),$$@)
     
    847850
    848851$(target)_GENHDRS_REAL += $(mocuiinc)
    849 
    850 .NOTPARALLEL: $(mocuiinc)
     852$(target)_INTERMEDIATES += $(mocuiinc)
     853
    851854$(uisrc): $(mocuiinc)
    852855$(mocuiinc): $(mocuihdr)
     
    869872$(eval mocsrc := $(PATH_$(target))/moc/moc_$(notdir $(basename $(uifile))).cpp)
    870873
     874
    871875$(target)_GENSRCS_REAL += $(uisrc) $(mocsrc)
    872876$(target)_GENHDRS_REAL += $(uihdr)
    873 
    874 .NOTPARALLEL: $(uihdr)
     877$(target)_INTERMEDIATES += $(uihdr)
     878## @todo The source should be added to GEN_SOURCES: $ (target)_GEN_SOURCES += $ (uisrc) $ (mocsrc)
     879
    875880$(uihdr): $(uifile) | $$(call DIRDEP,$(dir $(uihdr)))
    876881        $$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
     
    900905
    901906$(target)_GENHDRS_REAL += $(uihdr)
    902 
    903 .NOTPARALLEL: $(uihdr)
     907$(target)_INTERMEDIATES += $(uihdr)
     908
    904909$(uihdr): $(uifile) | $$(call DIRDEP,$(dir $(uihdr)))
    905910        $$(call MSG_TOOL,uic,$(target),$(uifile),$$@)
     
    965970
    966971# Generate COM Wrappers
    967 .NOTPARALLEL: $(WRAPPERSFILE) $(WRAPPERSINCFILE)
    968 
    969972$(WRAPPERSINCFILE): $(WRAPPERSFILE)
    970973
     
    976979        $(call MSG_MKDIR,$@)
    977980        $(QUIET)$(MKDIR) -p $@
    978 
    979 # this is actually necessary only for Win32 target with disabled dependencies
    980 define def_wrapper_deps
    981 $(src): $(WRAPPERSFILE) $(WRAPPERSINCFILE)
    982 endef
    983 
    984 $(foreach src,$(VirtualBox_SOURCES),$(eval $(def_wrapper_deps)))
    985981
    986982# rules for resources file creation
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