VirtualBox

Changeset 49803 in vbox for trunk/src


Ignore:
Timestamp:
Dec 6, 2013 1:03:32 AM (11 years ago)
Author:
vboxsync
Message:

Main: tstCollector need to require the wrapper generated header files to exist in order to avoid it being built before they are generated. This necessitated some changes that lead to some more VBoxApiWrap related cleanups.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

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

    r49797 r49803  
    2727# Globals.
    2828#
    29 VBOX_MAIN_APIWRAPPER_INCS := $(call TARGET_PATH,VBoxAPIWrap)
     29VBOX_MAIN_APIWRAPPER_DIR  := $(abspath $(call TARGET_PATH,VBoxAPIWrap))
     30VBOX_MAIN_APIWRAPPER_INCS := $(VBOX_MAIN_APIWRAPPER_DIR)
    3031
  • trunk/src/VBox/Main/Makefile.kmk

    r49802 r49803  
    174174LIBRARIES += VBoxAPIWrap
    175175VBoxAPIWrap_TEMPLATE        = VBoxMainLib
    176 VBoxAPIWrap_SOURCES         = $(VBoxAPIWrap_VBOX_GENERATEDCPP)
    177 VBoxAPIWrap_VBOX_GENERATEDCPP = $(filter %.cpp,$(VBoxAPIWrap_VBOX_GENERATEDSOURCES))
    178 VBoxAPIWrap_VBOX_GENERATEDSOURCES = $(addprefix $(VBoxAPIWrap_0_OUTDIR)/,$(VBoxAPIWrap_VBOX_APIWRAPPERFILES))
     176VBoxAPIWrap_SOURCES         = $(filter %.cpp,$(VBOX_MAIN_APIWRAPPER_GEN_FILES))
    179177VBoxAPIWrap_VBOX_RAWSRC     = \
    180178        $(VBoxAPIWrap_0_OUTDIR)/apiwrappers
     
    189187        $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h) \
    190188        $(VBoxAPIWrap_VBOX_RAWSRC)
     189
     190# This include file (generated at the bottom of this file), defines
     191# VBOX_MAIN_APIWRAPPER_GEN_FILES and VBOX_MAIN_APIWRAPPER_GEN_HDRS.
    191192VBoxAPIWrap_VBOX_KMK_FILE   = $(PATH_OUT)/vboxapiwrap.kmk
    192193include $(VBoxAPIWrap_VBOX_KMK_FILE)
     
    292293VBoxSVC_CXXFLAGS = $(filter-out -Wno-unused,$(TEMPLATE_VBOXMAINEXE_CXXFLAGS))
    293294
    294 VBoxSVC_DEPS = $(filter %.h,$(VBoxAPIWrap_VBOX_GENERATEDSOURCES))
    295 
    296295VBoxSVC_INCS = \
    297296        include \
     
    322321        $(VBOX_MAIN_PREREQS) \
    323322        $(VBOX_XML_SCHEMADEFS_H) \
    324         $(VBOX_AUTOGEN_EVENT_H)
     323        $(VBOX_AUTOGEN_EVENT_H) \
     324        $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
    325325
    326326VBoxSVC_SOURCES = \
     
    620620endif
    621621
    622 VBoxC_DEPS = $(filter %.h,$(VBoxAPIWrap_VBOX_GENERATEDSOURCES))
    623 
    624622VBoxC_INCS          = \
    625623        include \
     
    659657        $(VBOX_MAIN_PREREQS) \
    660658        $(VBOX_XML_SCHEMADEFS_H) \
    661         $(VBOX_AUTOGEN_EVENT_H)
     659        $(VBOX_AUTOGEN_EVENT_H) \
     660        $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
    662661
    663662VBoxC_SOURCES = \
     
    10541053# Moved those rules to the end so that VBoxAPIWrap_0_OUTDIR can be expanded without $$ trickery.
    10551054$(VBoxAPIWrap_VBOX_RAWSRC) \
    1056 +| $(VBoxAPIWrap_VBOX_GENERATEDSOURCES): \
     1055+| $(VBOX_MAIN_APIWRAPPER_GEN_FILES): \
    10571056                $(VBOX_XIDL_FILE) \
    10581057                $(VBoxAPIWrap_XSLT) \
     
    10601059                | $$(dir $$@)
    10611060        $(call MSG_L1,Generating C++ Server API wrapper files from XIDL)
    1062         $(QUIET)$(RM) -f $(filter-out $(VBoxAPIWrap_VBOX_GENERATEDSOURCES),$(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp) $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h))
     1061        $(QUIET)$(RM) -f $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_FILES),$(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp) $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h))
    10631062        $(QUIET)$(VBOX_XSLTPROC) --stringparam filelistonly "" -o $@ $(VBoxAPIWrap_XSLT) $<
    10641063        $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
     
    10681067        $(QUIET)$(RM) -f $@
    10691068        $(QUIET)$(MKDIR) -p $(@D)
    1070         $(QUIET)$(VBOX_XSLTPROC) --stringparam filelistonly VBoxAPIWrap_VBOX_APIWRAPPERFILES -o $@ $(VBoxAPIWrap_XSLT) $<
     1069        $(QUIET)$(VBOX_XSLTPROC) --stringparam filelistonly VBOX_MAIN_APIWRAPPER_GEN_FILES -o $@ $(VBoxAPIWrap_XSLT) $<
     1070        $(QUIET)$(APPEND) -n "$@" "" "" \
     1071                'VBOX_MAIN_APIWRAPPER_GEN_FILES := $$(addprefix $$(VBOX_MAIN_APIWRAPPER_DIR)/,$$(VBOX_MAIN_APIWRAPPER_GEN_FILES))' \
     1072                'VBOX_MAIN_APIWRAPPER_GEN_HDRS = $$(filter %.h,$$(VBOX_MAIN_APIWRAPPER_GEN_FILES))'
    10711073        $(QUIET)$(CP) --changed -fv $@ $(VBoxAPIWrap_VBOX_KMK_FILE)
    10721074
  • trunk/src/VBox/Main/testcase/Makefile.kmk

    r49797 r49803  
    110110# tstCollector
    111111#
     112# Note! VBOX_MAIN_APIWRAPPER_GEN_HDRS is only defined if kmk is executed a
     113#       parent directory.  Since the rules for generating the files listed by
     114#       the variable lives in the parent makefile, this is not a problem.
     115#
    112116tstCollector_TEMPLATE = VBOXMAINCLIENTTSTEXE
    113117tstCollector_SOURCES  = \
    114118        tstCollector.cpp \
    115119        ../src-server/Performance.cpp
    116 tstCollector_INCS     = ../include $(VBOX_MAIN_APIWRAPPER_INCS)
    117 tstCollector_DEFS    += VBOX_COLLECTOR_TEST_CASE
    118 tstCollector_LDFLAGS.darwin  += -lproc
    119 tstCollector_LDFLAGS.solaris += -lkstat -lnvpair
    120 tstCollector_LDFLAGS.win     += psapi.lib powrprof.lib
     120tstCollector_INCS            = \
     121        ../include \
     122        $(VBOX_MAIN_APIWRAPPER_INCS)
     123tstCollector_INTERMEDIATES   = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
     124tstCollector_DEFS            = VBOX_COLLECTOR_TEST_CASE
     125tstCollector_LDFLAGS.darwin  = -lproc
     126tstCollector_LDFLAGS.solaris = -lkstat -lnvpair
     127tstCollector_LDFLAGS.win     = psapi.lib powrprof.lib
    121128
    122129
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