VirtualBox

Changeset 1399 in kBuild


Ignore:
Timestamp:
Mar 16, 2008 10:05:33 PM (17 years ago)
Author:
bird
Message:

Some todos and an untested function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r1394 r1399  
    241241
    242242
     243##
     244# Function for $(call)'ing.
     245# @param    1   trgs                List of object to consider for inheriting.
     246# @param    2   src_prefix          What to prefix the value found in EXTENDS with to get the object.
     247# @param    3   properties          List of the properties with straight expansion.
     248# @param    4   properties_now      List of the properties with immediate expansion.
     249# @param    5   properties_deferred List of the properties with deferred expansion (e.g. function).
     250define fn_inherit
     251src_prefix          := $(2)
     252properties          := $(3)
     253properties_now      := $(4)
     254properties_deferred := $(5)
     255$(foreach trg, $(1),$(eval $(value def_inherit)))
     256endef
     257
     258
     259
    243260#
    244261# Determin all the templates that is being used and make
     
    421438
    422439#
    423 # Common Inheritance
     440# Template/Target Expansion.
     441#
     442# Extend all targets with the values from the template. Doing this up front
     443# allows more generic code and less mess down in the pass 2 target handling.
     444# However it does eat a good deal of memory.
    424445#
    425446
     
    711732$(foreach tool, $(_TOOLS), $(eval $(value def_tools_include)))
    712733
     734## @todo TOOL_X_EXTENDS
     735
    713736
    714737# include SDKS
     
    737760endif
    738761
     762## @todo SDK_X_EXTENDS
    739763
    740764#
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