VirtualBox

Changeset 2234 in kBuild


Ignore:
Timestamp:
Jan 9, 2009 2:49:56 AM (16 years ago)
Author:
bird
Message:

footer.kmk: 2_OUTPUT, 2_OUTPUT_MAYBE, 2_DEPEND and 2_DEPORD properties. Ref #57.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r2227 r2234  
    16451645# Indirect goal for downloading something.
    16461646.PRECIOUS: $(out)
    1647 $(out) + $($(target)_$(srcname)_FETCH_OUTPUT_) +| $($(target)_$(srcname)_FETCH_OUTPUT_MAYBE_)  : \
    1648                 | $($(target)_$(srcname)_FETCH_DEPORD_)
     1647$(out) + $($(target)_$(srcname)_FETCH_2_OUTPUT) +| $($(target)_$(srcname)_FETCH_2_OUTPUT_MAYBE)  : \
     1648                | $($(target)_$(srcname)_FETCH_2_DEPORD)
    16491649        %$$(call MSG_FETCH_DL,$(target),$(source),$(out))
    16501650        @## @todo do fancy stuff like download continuation.
    16511651        $$(QUIET)$$(RM) -f -- $(out)
    1652         $($(target)_$(srcname)_FETCH_CMDS_)
     1652        $(cmds)
    16531653        $$(QUIET)$(if $(md5),$$(MD5SUM_EXT) -b -C $(md5) $(out))
    16541654
     
    16561656
    16571657# Intermediate goal for making sure the md5 and size matches. it will (re) fetch the archive if necessary.
    1658 $(out).checked_$(md5)_$(size): $($(target)_$(srcname)_FETCH_DEPEND_) | $($(target)_$(srcname)_FETCH_DEPORD_)
     1658$(out).checked_$(md5)_$(size): $($(target)_$(srcname)_FETCH_2_DEPEND) | $($(target)_$(srcname)_FETCH_2_DEPORD)
    16591659        %$$(call MSG_FETCH_CHK,$(target),$(source),$(out))
    16601660        $$(QUIET)$$(RM) -f -- $$@
     
    16771677define def_fetch_src_unpack_rule
    16781678# This is the unpack rule. it has an order-only dependency on the download check.
    1679 $(out) + $($(target)_$(srcname)_UNPACK_OUTPUT_) +| $($(target)_$(srcname)_UNPACK_OUTPUT_MAYBE_) : \
    1680                 $($(target)_$(srcname)_UNPACK_DEPEND_) \
    1681                 | $($(target)_$(srcname)_UNPACK_DEPORD_) \
     1679$(out) + $($(target)_$(srcname)_UNPACK_2_OUTPUT) +| $($(target)_$(srcname)_UNPACK_2_OUTPUT_MAYBE) : \
     1680                $($(target)_$(srcname)_UNPACK_2_DEPEND) \
     1681                | $($(target)_$(srcname)_UNPACK_2_DEPORD) \
    16821682                $(archive).checked_$(md5)_$(size) \
    16831683                $(dir $(out))
     
    16891689                 || (   $$(RM_EXT) -f $(archive).checked_$(md5)_$(size) \
    16901690                     && $$(MAKE)      $(archive).checked_$(md5)_$(size) -f $(MAKEFILE) --no-print-directory )
    1691         $($(target)_$(srcname)_UNPACK_CMDS_)
     1691        $(cmds)
    16921692        $$(QUIET2)$$(APPEND) $(out) $(notdir $(archive).checked_$(md5)_$(size))
    16931693        $$(QUIET2)$$(APPEND) $(out) $(notdir $(out))
     
    18081808
    18091809# call the tool
    1810 $(target)_$(srcname)_FETCH_CMDS_  := $(TOOL_$(tool)_FETCH_CMDS)
    1811 $(target)_$(srcname)_FETCH_OUTPUT_ := $(TOOL_$(tool)_FETCH_OUTPUT)
    1812 $(target)_$(srcname)_FETCH_OUTPUT_MAYBE_ := $(TOOL_$(tool)_FETCH_OUTPUT_MAYBE)
    1813 $(target)_$(srcname)_FETCH_DEPEND_ := $(TOOL_$(tool)_FETCH_DEPEND) $(deps)
    1814 $(target)_$(srcname)_FETCH_DEPORD_ := $(TOOL_$(tool)_FETCH_DEPORD) $(dirdep) $(orderdeps)
     1810local cmds := $(TOOL_$(tool)_FETCH_CMDS)
     1811$(target)_$(srcname)_FETCH_2_OUTPUT := $(TOOL_$(tool)_FETCH_OUTPUT)
     1812$(target)_$(srcname)_FETCH_2_OUTPUT_MAYBE := $(TOOL_$(tool)_FETCH_OUTPUT_MAYBE)
     1813$(target)_$(srcname)_FETCH_2_DEPEND := $(TOOL_$(tool)_FETCH_DEPEND) $(deps)
     1814$(target)_$(srcname)_FETCH_2_DEPORD := $(TOOL_$(tool)_FETCH_DEPORD) $(dirdep) $(orderdeps)
    18151815
    18161816# generate the fetch rule.
     
    18671867
    18681868# call the tool
    1869 $(target)_$(srcname)_UNPACK_CMDS_  := $(TOOL_$(tool)_UNPACK_CMDS)
    1870 $(target)_$(srcname)_UNPACK_OUTPUT_ := $(TOOL_$(tool)_UNPACK_OUTPUT)
    1871 $(target)_$(srcname)_UNPACK_OUTPUT_MAYBE_ := $(TOOL_$(tool)_UNPACK_OUTPUT_MAYBE)
    1872 $(target)_$(srcname)_UNPACK_DEPEND_ := $(TOOL_$(tool)_UNPACK_DEPEND) $(deps)
    1873 $(target)_$(srcname)_UNPACK_DEPORD_ := $(TOOL_$(tool)_UNPACK_DEPORD) $(dirdep) $(orderdeps)
     1869local cmds := $(TOOL_$(tool)_UNPACK_CMDS)
     1870$(target)_$(srcname)_UNPACK_2_OUTPUT := $(TOOL_$(tool)_UNPACK_OUTPUT)
     1871$(target)_$(srcname)_UNPACK_2_OUTPUT_MAYBE := $(TOOL_$(tool)_UNPACK_OUTPUT_MAYBE)
     1872$(target)_$(srcname)_UNPACK_2_DEPEND := $(TOOL_$(tool)_UNPACK_DEPEND) $(deps)
     1873$(target)_$(srcname)_UNPACK_2_DEPORD := $(TOOL_$(tool)_UNPACK_DEPORD) $(dirdep) $(orderdeps)
    18741874
    18751875# generate the fetch rule.
     
    20642064$(basename $(notdir $(obj))).obj: $(obj)
    20652065
    2066 ## @todo make this 'local cmds' in 0.2.x or when a new kb-src-one is added.
     2066## @todo make this 'local cmds,output,output_maybe,depend and depord' in 0.2.x or when a new kb-src-one is added.
    20672067$(target)_$(source)_CMDS_ :=
     2068$(target)_$(source)_OUTPUT_ :=
     2069$(target)_$(source)_OUTPUT_MAYBE_ :=
     2070$(target)_$(source)_DEPEND_ :=
     2071$(target)_$(source)_DEPORD_ :=
    20682072endef # def_target_source_rule
    20692073$(eval-opt-var def_target_source_rule)
     
    20862090# @param    $(dep)                  The name of the dependency file.
    20872091# @param    $(out)
    2088 # @param    $($(target)_OUTPUT_)    Output files from the link.
    2089 # @param    $($(target)_OUTPUT_MAYBE_)  Output files that the link may perhaps create.
    2090 # @param    $($(target)_DEPEND_)    Dependencies.
    2091 # @param    $($(target)_DEPORD_)    Dependencies which should only affect build order.
     2092# @param    $($(target)_2_OUTPUT)   Output files from the link.
     2093# @param    $($(target)_2_OUTPUT_MAYBE) Output files that the link may perhaps create.
     2094# @param    $($(target)_2_DEPEND)   Dependencies.
     2095# @param    $($(target)_2_DEPORD)   Dependencies which should only affect build order.
    20922096# @param    $(cmds)                 The link commands.
    20932097# @param    $($(target)_CMDS_PREV_) The link commands from the previous run.
     
    20962100$(out): .MUST_MAKE = $$(comp-cmds-ex $$($(target)_CMDS_PREV_),$$(commands $$@),FORCE)
    20972101endif
    2098 $(out) + $($(target)_OUTPUT_) +| $($(target)_OUTPUT_MAYBE_) : \
    2099                 $$$$($(target)_DEPEND_) \
     2102$(out) + $($(target)_2_OUTPUT) +| $($(target)_2_OUTPUT_MAYBE) : \
     2103                $$$$($(target)_2_DEPEND) \
    21002104                $(value _DEP_LINK_CMDS) \
    21012105                | \
    2102                 $$$$($(target)_DEPORD_)
     2106                $$$$($(target)_2_DEPORD)
    21032107        %$$(call MSG_LINK,$(target),$$@,$(tool_do))
    2104         $$(QUIET)$$(RM) -f -- $(dep) $(out) $($(target)_OUTPUT_) $($(target)_OUTPUT_MAYBE_)
     2108        $$(QUIET)$$(RM) -f -- $(dep) $(out) $($(target)_2_OUTPUT) $($(target)_2_OUTPUT_MAYBE)
    21052109
    21062110$(cmds)
     
    22902294endif
    22912295
    2292 _OUT_FILES += $($(target)_OUTPUT_) $($(target)_OUTPUT_MAYBE_) $(out)
     2296_OUT_FILES += $($(target)_2_OUTPUT) $($(target)_2_OUTPUT_MAYBE) $(out)
    22932297_CLEAN_FILES += $($(target)_CLEAN) $($(target)_CLEAN.$(bld_trg)) $($(target)_CLEAN.$(bld_trg).$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_cpu)) $($(target)_CLEAN.$(bld_type))
    22942298_DIRS += $($(target)_BLDDIRS) $($(target)_BLDDIRS.$(bld_trg)) $($(target)_BLDDIRS.$(bld_trg).$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_cpu)) $($(target)_BLDDIRS.$(bld_type))
     
    25252529 local cmds  := $(cmds)$(NL)$(TAB)$(post_cmds)
    25262530endif
    2527 $(target)_OUTPUT_ := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT)
    2528 $(target)_OUTPUT_MAYBE_ := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT_MAYBE)
    2529 $(target)_DEPEND_ := $(TOOL_$(tool)_LINK_LIBRARY_DEPEND) $(deps) $($(target)_OBJS_)
    2530 $(target)_DEPORD_ := $(TOOL_$(tool)_LINK_LIBRARY_DEPORD) $(dirdep) $(orderdeps)
     2531$(target)_2_OUTPUT := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT)
     2532$(target)_2_OUTPUT_MAYBE := $(TOOL_$(tool)_LINK_LIBRARY_OUTPUT_MAYBE)
     2533$(target)_2_DEPEND := $(TOOL_$(tool)_LINK_LIBRARY_DEPEND) $(deps) $($(target)_OBJS_)
     2534$(target)_2_DEPORD := $(TOOL_$(tool)_LINK_LIBRARY_DEPORD) $(dirdep) $(orderdeps)
    25312535
    25322536# generate the link rule.
     
    29482952 local cmds  := $(cmds)$(NL)$(TAB)$(post_cmds)
    29492953endif
    2950 $(target)_OUTPUT_ := $(TOOL_$(tool)_$(tool_do)_OUTPUT)
    2951 $(target)_OUTPUT_MAYBE_ := $(TOOL_$(tool)_$(tool_do)_OUTPUT_MAYBE)
    2952 $(target)_DEPEND_ := $(TOOL_$(tool)_$(tool_do)_DEPEND) $(deps) $($(target)_OBJS_)
    2953 $(target)_DEPORD_ := $(TOOL_$(tool)_$(tool_do)_DEPORD) $(dirdep) $(orderdeps)
     2954$(target)_2_OUTPUT := $(TOOL_$(tool)_$(tool_do)_OUTPUT)
     2955$(target)_2_OUTPUT_MAYBE := $(TOOL_$(tool)_$(tool_do)_OUTPUT_MAYBE)
     2956$(target)_2_DEPEND := $(TOOL_$(tool)_$(tool_do)_DEPEND) $(deps) $($(target)_OBJS_)
     2957$(target)_2_DEPORD := $(TOOL_$(tool)_$(tool_do)_DEPORD) $(dirdep) $(orderdeps)
    29542958
    29552959# generate the link rule.
     
    29592963# Update globals.
    29602964_OBJS += $($(target)_OBJS_)
    2961 _OUT_FILES += $($(target)_OUTPUT_) $($(target)_OUTPUT_MAYBE_) $(out)
     2965_OUT_FILES += $($(target)_2_OUTPUT) $($(target)_2_OUTPUT_MAYBE) $(out)
    29622966_CLEAN_FILES += $($(target)_CLEAN) $($(target)_CLEAN.$(bld_trg)) $($(target)_CLEAN.$(bld_trg).$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_cpu)) $($(target)_CLEAN.$(bld_type))
    29632967_DIRS += $($(target)_BLDDIRS) $($(target)_BLDDIRS.$(bld_trg)) $($(target)_BLDDIRS.$(bld_trg).$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_cpu)) $($(target)_BLDDIRS.$(bld_type))
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