- Timestamp:
- Dec 6, 2013 1:03:32 AM (11 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Config.kmk
r49797 r49803 27 27 # Globals. 28 28 # 29 VBOX_MAIN_APIWRAPPER_INCS := $(call TARGET_PATH,VBoxAPIWrap) 29 VBOX_MAIN_APIWRAPPER_DIR := $(abspath $(call TARGET_PATH,VBoxAPIWrap)) 30 VBOX_MAIN_APIWRAPPER_INCS := $(VBOX_MAIN_APIWRAPPER_DIR) 30 31 -
trunk/src/VBox/Main/Makefile.kmk
r49802 r49803 174 174 LIBRARIES += VBoxAPIWrap 175 175 VBoxAPIWrap_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)) 176 VBoxAPIWrap_SOURCES = $(filter %.cpp,$(VBOX_MAIN_APIWRAPPER_GEN_FILES)) 179 177 VBoxAPIWrap_VBOX_RAWSRC = \ 180 178 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers … … 189 187 $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h) \ 190 188 $(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. 191 192 VBoxAPIWrap_VBOX_KMK_FILE = $(PATH_OUT)/vboxapiwrap.kmk 192 193 include $(VBoxAPIWrap_VBOX_KMK_FILE) … … 292 293 VBoxSVC_CXXFLAGS = $(filter-out -Wno-unused,$(TEMPLATE_VBOXMAINEXE_CXXFLAGS)) 293 294 294 VBoxSVC_DEPS = $(filter %.h,$(VBoxAPIWrap_VBOX_GENERATEDSOURCES))295 296 295 VBoxSVC_INCS = \ 297 296 include \ … … 322 321 $(VBOX_MAIN_PREREQS) \ 323 322 $(VBOX_XML_SCHEMADEFS_H) \ 324 $(VBOX_AUTOGEN_EVENT_H) 323 $(VBOX_AUTOGEN_EVENT_H) \ 324 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS) 325 325 326 326 VBoxSVC_SOURCES = \ … … 620 620 endif 621 621 622 VBoxC_DEPS = $(filter %.h,$(VBoxAPIWrap_VBOX_GENERATEDSOURCES))623 624 622 VBoxC_INCS = \ 625 623 include \ … … 659 657 $(VBOX_MAIN_PREREQS) \ 660 658 $(VBOX_XML_SCHEMADEFS_H) \ 661 $(VBOX_AUTOGEN_EVENT_H) 659 $(VBOX_AUTOGEN_EVENT_H) \ 660 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS) 662 661 663 662 VBoxC_SOURCES = \ … … 1054 1053 # Moved those rules to the end so that VBoxAPIWrap_0_OUTDIR can be expanded without $$ trickery. 1055 1054 $(VBoxAPIWrap_VBOX_RAWSRC) \ 1056 +| $(VB oxAPIWrap_VBOX_GENERATEDSOURCES): \1055 +| $(VBOX_MAIN_APIWRAPPER_GEN_FILES): \ 1057 1056 $(VBOX_XIDL_FILE) \ 1058 1057 $(VBoxAPIWrap_XSLT) \ … … 1060 1059 | $$(dir $$@) 1061 1060 $(call MSG_L1,Generating C++ Server API wrapper files from XIDL) 1062 $(QUIET)$(RM) -f $(filter-out $(VB oxAPIWrap_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)) 1063 1062 $(QUIET)$(VBOX_XSLTPROC) --stringparam filelistonly "" -o $@ $(VBoxAPIWrap_XSLT) $< 1064 1063 $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR) … … 1068 1067 $(QUIET)$(RM) -f $@ 1069 1068 $(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))' 1071 1073 $(QUIET)$(CP) --changed -fv $@ $(VBoxAPIWrap_VBOX_KMK_FILE) 1072 1074 -
trunk/src/VBox/Main/testcase/Makefile.kmk
r49797 r49803 110 110 # tstCollector 111 111 # 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 # 112 116 tstCollector_TEMPLATE = VBOXMAINCLIENTTSTEXE 113 117 tstCollector_SOURCES = \ 114 118 tstCollector.cpp \ 115 119 ../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 120 tstCollector_INCS = \ 121 ../include \ 122 $(VBOX_MAIN_APIWRAPPER_INCS) 123 tstCollector_INTERMEDIATES = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS) 124 tstCollector_DEFS = VBOX_COLLECTOR_TEST_CASE 125 tstCollector_LDFLAGS.darwin = -lproc 126 tstCollector_LDFLAGS.solaris = -lkstat -lnvpair 127 tstCollector_LDFLAGS.win = psapi.lib powrprof.lib 121 128 122 129
Note:
See TracChangeset
for help on using the changeset viewer.