Changeset 455
- Timestamp:
- Jun 20, 2006, 9:03:15 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r450 r455 217 217 $(foreach prop, $(PROPS_SINGLE) $(PROPS_ACCUMULATE) $(PROPS_DEFERRED)\ 218 218 $(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))\ 219 221 $(addsuffix .$(BUILD_TYPE), $(PROPS_SINGLE) $(PROPS_ACCUMULATE) $(PROPS_DEFERRED))\ 220 222 ,$(eval $(def_template_extends_prop))) # exploits the 2 evaluation, so no value! … … 229 231 # Common Inheritance 230 232 # 231 232 ## Inherit defaults property233 # @param $(prop) Property name234 # @param $(target) Target name.235 # @param $(bld_trg) Build target name.236 define def_inherit_defaults_one237 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 endif243 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 endif247 endif248 endif249 endef250 251 ## Inherit default properties for one target.252 # A bit tricky this one, but it depends a bit on whether or not TEMPLATE253 # is inherited from the default properties.254 # @param $(target) Target name255 # @param $(bld_trg) Build target name.256 #257 define def_inherit_defaults258 ifdef $(target)_TEMPLATE259 ifeq ($(strip $(TEMPLATE_$($(target)_TEMPLATE)_TOOL) $(TEMPLATE_$($(target)_TEMPLATE)_TOOL.$(bld_trg))),)260 $$(foreach prop,TOOL, $$(eval $$(def_inherit_defaults_one)))261 endif262 ifeq ($(strip $(TEMPLATE_$($(target)_TEMPLATE)_SDKS) $(TEMPLATE_$($(target)_TEMPLATE)_SDKS.$(bld_trg))),)263 $$(foreach prop,SDKS, $$(eval $$(def_inherit_defaults_one)))264 endif265 else266 $$(foreach prop,TEMPLATE TOOL SDKS, $$(eval $$(def_inherit_defaults_one)))267 endif268 endef269 # 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 276 233 277 234 ## Inherit one template property in a non-accumulative manner. … … 290 247 #$ (warning dbgsource: $(target)_$(prop).$(bld_trg)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)) 291 248 $(target)_$(prop).$(bld_trg) := $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)) 249 endif 250 endif 251 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch) 252 ifndef $(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)) 255 endif 256 endif 257 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu) 258 ifndef $(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)) 292 261 endif 293 262 endif … … 310 279 #$ (warning dbgsource: $(target)_$(prop).$(bld_trg)="TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)" TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)) 311 280 $(target)_$(prop).$(bld_trg) = $$(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg)) 281 endif 282 endif 283 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_arch) 284 ifndef $(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)) 287 endif 288 endif 289 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(bld_trg_cpu) 290 ifndef $(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)) 312 293 endif 313 294 endif
Note:
See TracChangeset
for help on using the changeset viewer.