Changeset 455


Ignore:
Timestamp:
Jun 20, 2006, 9:03:15 AM (19 years ago)
Author:
bird
Message:

Added arch and cpu to the template to template inheritance. removed some obsolete stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r450 r455  
    217217$(foreach prop, $(PROPS_SINGLE) $(PROPS_ACCUMULATE) $(PROPS_DEFERRED)\
    218218$(addsuffix .$(BUILD_TARGET), $(PROPS_SINGLE) $(PROPS_ACCUMULATE) $(PROPS_DEFERRED))\
     219$(addsuffix .$(BUILD_TARGET_ARCH), $(PROPS_SINGLE) $(PROPS_ACCUMULATE) $(PROPS_DEFERRED))\
     220$(addsuffix .$(BUILD_TARGET_CPU), $(PROPS_SINGLE) $(PROPS_ACCUMULATE) $(PROPS_DEFERRED))\
    219221$(addsuffix .$(BUILD_TYPE), $(PROPS_SINGLE) $(PROPS_ACCUMULATE) $(PROPS_DEFERRED))\
    220222,$(eval $(def_template_extends_prop))) # exploits the 2 evaluation, so no value!
     
    229231# Common Inheritance
    230232#
    231 
    232 ## Inherit defaults property
    233 # @param    $(prop)     Property name
    234 # @param    $(target)   Target name.
    235 # @param    $(bld_trg)  Build target name.
    236 define def_inherit_defaults_one
    237 ifndef $(target)_$(prop)
    238 ifndef $(target)_$(prop).$(bld_trg)
    239 ifdef $(prop)
    240 $$(eval $(target)_$(prop) := $($(prop)))
    241 #$ (warning dbg idefone: $(target)_$(prop):=$($(prop)))
    242 endif
    243 ifdef $(prop).$(bld_trg)
    244 $$(eval $(target)_$(prop).$(bld_trg) := $($(prop).$(bld_trg)))
    245 #$ (warning dbg idefone: $(target)_$(prop).$(bld_trg) := $($(prop).$(bld_trg)))
    246 endif
    247 endif
    248 endif
    249 endef
    250 
    251 ## Inherit default properties for one target.
    252 # A bit tricky this one, but it depends a bit on whether or not TEMPLATE
    253 # is inherited from the default properties.
    254 # @param    $(target)   Target name
    255 # @param    $(bld_trg)  Build target name.
    256 #
    257 define def_inherit_defaults
    258 ifdef $(target)_TEMPLATE
    259 ifeq ($(strip $(TEMPLATE_$($(target)_TEMPLATE)_TOOL) $(TEMPLATE_$($(target)_TEMPLATE)_TOOL.$(bld_trg))),)
    260 $$(foreach prop,TOOL, $$(eval $$(def_inherit_defaults_one)))
    261 endif
    262 ifeq ($(strip $(TEMPLATE_$($(target)_TEMPLATE)_SDKS) $(TEMPLATE_$($(target)_TEMPLATE)_SDKS.$(bld_trg))),)
    263 $$(foreach prop,SDKS, $$(eval $$(def_inherit_defaults_one)))
    264 endif
    265 else
    266 $$(foreach prop,TEMPLATE TOOL SDKS, $$(eval $$(def_inherit_defaults_one)))
    267 endif
    268 endef
    269 # Inherit default properties.
    270 # !!!!!!THIS IS MESSY AND NOT NECESSARY!!!!!!
    271 #bld_trg := $(BUILD_TARGET)
    272 #$(foreach target, $(_ALL_BUILD_TARGET_TARGETS),$(eval $(def_inherit_defaults)))
    273 #bld_trg := $(BUILD_PLATFORM)
    274 #$(foreach target, $(_ALL_BUILD_PLATFORM_TARGETS),$(eval $(def_inherit_defaults)))
    275 
    276233
    277234## Inherit one template property in a non-accumulative manner.
     
    290247#$ (warning dbgsource: $(target)_$(prop).$(bld_trg)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg))
    291248$(target)_$(prop).$(bld_trg) := $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg))
     249endif
     250endif
     251ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch)
     252ifndef $(target)_$(prop).$(bld_trg_arch)
     253#$ (warning dbgsource: $(target)_$(prop).$(bld_trg_arch)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch))
     254$(target)_$(prop).$(bld_trg_arch) := $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch))
     255endif
     256endif
     257ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu)
     258ifndef $(target)_$(prop).$(bld_trg_cpu)
     259#$ (warning dbgsource: $(target)_$(prop).$(bld_trg_cpu)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu))
     260$(target)_$(prop).$(bld_trg_cpu) := $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu))
    292261endif
    293262endif
     
    310279#$ (warning dbgsource: $(target)_$(prop).$(bld_trg)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg))
    311280$(target)_$(prop).$(bld_trg) = $$(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg))
     281endif
     282endif
     283ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch)
     284ifndef $(target)_$(prop).$(bld_trg_arch)
     285#$ (warning dbgsource: $(target)_$(prop).$(bld_trg_arch)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch))
     286$(target)_$(prop).$(bld_trg_arch) = $$(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch))
     287endif
     288endif
     289ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu)
     290ifndef $(target)_$(prop).$(bld_trg_cpu)
     291#$ (warning dbgsource: $(target)_$(prop).$(bld_trg_cpu)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu))
     292$(target)_$(prop).$(bld_trg_cpu) = $$(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu))
    312293endif
    313294endif
Note: See TracChangeset for help on using the changeset viewer.