VirtualBox

Changeset 66636 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 20, 2017 7:27:00 PM (8 years ago)
Author:
vboxsync
Message:

Main/Makefile.kmk: Started using KB_FN_AUTO_CMD_DEPS and friends.

File:
1 edited

Legend:

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

    r66411 r66636  
    249249        $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py
    250250
     251 ## @todo $(call KB_FN_AUTO_CMD_DEPS,$$(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py) - need to fix the double expansion here
    251252$$(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py:  \
    252253                $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl \
     
    647648
    648649#
    649 # Generate some event stuff for VBoxSVC and VBoxC.
     650# Generate some event stuff for VBoxSVC and VBoxC.       $(MAKEFILE
    650651#
    651652$(VBOX_AUTOGEN_EVENT_H): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
     
    940941VBoxC_CLEAN.win  += $(VBoxC_0_OUTDIR)/VBoxC.rgs
    941942
     943 ## @todo $(call KB_FN_AUTO_CMD_DEPS,$$(VBoxC_0_OUTDIR)/VBoxC.rgs) - need to fix the double expansion here
    942944$$(VBoxC_0_OUTDIR)/VBoxC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
    943945        $(VBOX_XSLTPROC) --stringparam Application VirtualBox --stringparam Module VBoxC -o $@ $< $(VBOX_XIDL_FILE)
     
    9981000        $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
    9991001
     1002 ## @todo $(call KB_FN_AUTO_CMD_DEPS,$$(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs) - need to fix the double expansion here
    10001003 $$(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs: \
    10011004                $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
     
    12061209glue/xpcom/helpers.cpp: $(VBOX_IDL_TYPELIB.XPCOM)
    12071210
     1211$(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_FILE.XPCOM),$(PATH_OUT)/VBOX_IDL_FILE.XPCOM.vbox-dep)
    12081212$(VBOX_IDL_FILE.XPCOM): $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
    1209         $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
    1210         $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
    1211 
     1213        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_FILE.XPCOM.vbox-dep)
     1214        $(call MSG_TOOL,xsltproc,VBoxSVC,$(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl,$@)
     1215        $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE)
     1216
     1217$(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_TYPELIB.XPCOM),$(PATH_OUT)/VBOX_IDL_TYPELIB.XPCOM.vbox-dep)
    12121218$(VBOX_IDL_TYPELIB.XPCOM): $(VBOX_IDL_FILE.XPCOM) |  $$(dir $$@) $(VBOX_XPIDL)
    1213         $(call MSG_TOOL,xpidl,VBoxSVC,$<,$@)
    1214         $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m typelib -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
     1219        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_TYPELIB.XPCOM.vbox-dep)
     1220        $(call MSG_TOOL,xpidl,VBoxSVC,$(VBOX_IDL_FILE.XPCOM),$@)
     1221        $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m typelib -I $(VBOX_PATH_XPCOM_IDL) -e $@ $(VBOX_IDL_FILE.XPCOM)
    12151222        $(CHMOD) 0644 $@
    12161223## @todo ^^^^^^^^^^^^ fix horrible hack
    12171224
     1225$(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_HEADER.XPCOM),$(PATH_OUT)/VBOX_IDL_HEADER.XPCOM.vbox-dep)
    12181226$(VBOX_IDL_HEADER.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
    1219         $(call MSG_TOOL,xpidl,VBoxSVC,$<,$@)
    1220         $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m header  -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
    1221 
     1227        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_HEADER.XPCOM.vbox-dep)
     1228        $(call MSG_TOOL,xpidl,VBoxSVC,$(VBOX_IDL_FILE.XPCOM),$@)
     1229        $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m header  -I $(VBOX_PATH_XPCOM_IDL) -e $@ $(VBOX_IDL_FILE.XPCOM)
     1230
     1231$(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_FILE.MSCOM),$(PATH_OUT)/VBOX_IDL_FILE.MSCOM.vbox-dep)
    12221232$(VBOX_IDL_FILE.MSCOM): $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
     1233        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_FILE.MSCOM.vbox-dep)
    12231234        $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
    12241235        $(QUIET)$(VBOX_XSLTPROC) -o $@ \
    12251236                $(if $(VBOX_WITH_MIDL_PROXY_STUB),-stringparam g_fGenProxy yes,) \
    12261237                $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
    1227                 $< $(VBOX_XIDL_FILE)
     1238                $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE)
     1239
    12281240
    12291241# Aliases for testing purposes.
     
    13681380VBoxJMscom-inst-jar_BLDDIRS += $(VBOX_JMSCOM_GEN)/java
    13691381
     1382$(call KB_FN_AUTO_CMD_DEPS,$(VBOX_JMSCOM_GEN)/jmscomglue.list)
    13701383$(VBOX_JMSCOM_GEN)/jmscomglue.list: \
    13711384                $(VBOX_XIDL_FILE) \
     
    13731386                $(VBOX_FILESPLIT) \
    13741387                | $(VBOX_JMSCOM_GEN)/java/
     1388        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
    13751389        $(call MSG_L1,Generating Java MSCOM glue files from XIDL)
    13761390        $(QUIET)$(RM) -f $(wildcard $(VBOX_JMSCOM_GEN)/java/*.java)
     
    13801394                --stringparam G_vboxGlueStyle mscom \
    13811395                --stringparam G_vboxDirPrefix "" \
    1382                 -o $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl $<
     1396                -o $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl $(VBOX_XIDL_FILE)
    13831397        $(QUIET)$(VBOX_FILESPLIT) $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_JMSCOM_GEN)/java
    13841398        $(QUIET)echo $(VBOX_JMSCOM_GEN)/java/*.java > $@
    13851399
     1400## @todo $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_JMSCOM_JAR)) - need to fix the double expansion here
    13861401$$(VBOX_JMSCOM_JAR): $(VBOX_JMSCOM_GEN)/jmscomglue.list | $$(dir $$@)
    13871402        $(call MSG_TOOL,javac,$(notdir $@),jmscomglue.list,)
     
    14141429
    14151430# Generate a make include file which lists the wrapper header and source files.
     1431$(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_VBOX_KMK_FILE).ts)
    14161432$(VBoxAPIWrap_VBOX_KMK_FILE).ts \
    14171433+| $(VBoxAPIWrap_VBOX_KMK_FILE): \
     
    14191435                $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl \
    14201436                $(VBOX_PATH_MAIN_SRC)/Makefile.kmk
     1437        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
    14211438        $(call MSG_GENERATE,,$(VBoxAPIWrap_VBOX_KMK_FILE))
    14221439        $(QUIET)$(RM) -f $@
    14231440        $(QUIET)$(MKDIR) -p $(@D)
    14241441        $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
    1425         $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
    1426                 -o $@ $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl $<
     1442                $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
     1443                -o $@ $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl $(VBOX_XIDL_FILE)
    14271444        $(QUIET)$(CP) --changed -fv $@ $(VBoxAPIWrap_VBOX_KMK_FILE)
    14281445
    14291446# Generate the header files for the wrappers.
     1447$(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers)
    14301448$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
    14311449+| $(VBOX_MAIN_APIWRAPPER_GEN_HDRS): \
     
    14351453                $(VBOX_FILESPLIT) \
    14361454                | $$(dir $$@)
     1455        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
    14371456        $(call MSG_L1,Generating C++ Server API wrapper header files from XIDL)
    14381457        $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_HDRS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h))
    14391458        $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
    14401459                --stringparam generating "headers" \
    1441                 -o $@ $(VBoxAPIWrap_VBOX_XSLT) $<
     1460                -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
    14421461        $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
    14431462
    14441463# Generate the DTrace probes for the wrappers and combine them with handcoded probes.
     1464$(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts)
    14451465$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
    14461466+| $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d: \
     
    14501470                $(VBOX_FILESPLIT) \
    14511471                | $$(dir $$@)
     1472        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
    14521473        $(call MSG_L1,Generating DTrace Provider for the VBox API (from XIDL))
    14531474        $(QUIET)$(RM) -f -- "$@" "[email protected]"
    14541475        $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
    14551476                --stringparam generating "dtrace-probes" \
    1456                 -o "$@" $(VBoxAPIWrap_VBOX_XSLT) $<
     1477                -o "$@" $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
    14571478        $(QUIET)$(SED) -e '' -o "[email protected]" \
    14581479                "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-start.d" \
     
    14631484
    14641485# Generate the wrapper source files - split in two due to long processing time
     1486$(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even)
    14651487$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even \
    14661488+| $(VBOX_MAIN_APIWRAPPER_GEN_SRCS_EVEN): \
     
    14701492                $(VBOX_FILESPLIT) \
    14711493                | $$(dir $$@)
     1494        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
    14721495        $(call MSG_L1,Generating C++ Server API wrapper files from XIDL - part 1)
    14731496        $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_SRCS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp))
     
    14751498                --stringparam generating "sources" \
    14761499                --param reminder 0 \
    1477                 -o $@ $(VBoxAPIWrap_VBOX_XSLT) $<
     1500                -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
    14781501        $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
    14791502
     1503$(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd)
    14801504$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd \
    14811505+| $(VBOX_MAIN_APIWRAPPER_GEN_SRCS_ODD): \
     
    14851509                $(VBOX_FILESPLIT) \
    14861510                | $$(dir $$@)
     1511        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
    14871512        $(call MSG_L1,Generating C++ Server API wrapper files from XIDL - part 2)
    14881513        $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_SRCS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp))
     
    14901515                --stringparam generating "sources" \
    14911516                --param reminder 1 \
    1492                 -o $@ $(VBoxAPIWrap_VBOX_XSLT) $<
     1517                -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
    14931518        $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
    14941519
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