Ignore:
Timestamp:
Dec 5, 2006, 3:36:19 PM (19 years ago)
Author:
bird
Message:

Target properties has precedence over template properties. Grouped accumulative props by where the 'most significan item' is and target <- template inheritance respect this. Fixes #11.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r653 r660  
    524524PROPS_DEFERRED := INSTFUN INSTALLER
    525525
    526 ## PROPS_ACCUMULATE
    527 # The list of accumulative target properties.
     526## PROPS_ACCUMULATE_R
     527# The list of accumulative target properties where the right most value/flag
     528# is the 'most significant'.
    528529# A Config.kmk file can add it's own properties to this list and kBuild
    529530# will do the necessary inheritance from templates to targets.
    530 PROPS_ACCUMULATE := \
    531         SDKS DEFS DEPS INCS SOURCES \
    532         COPTS CFLAGS CDEFS CINCS CXXOPTS CXXFLAGS CXXDEFS CXXINCS \
    533         ASOPTS ASFLAGS ASDEFS ASINCS \
    534         RCOPTS RCFLAGS RCDEFS RCINCS \
    535         LDFLAGS LIBS LIBPATH \
     531PROPS_ACCUMULATE_R := \
     532        DEFS DEPS \
     533        CFLAGS CDEFS \
     534        CXXFLAGS CXXDEFS \
     535        ASFLAGS ASDEFS \
     536        RCFLAGS RCDEFS \
     537        LDFLAGS \
    536538        FETCHFLAGS UNPACKFLAGS PATCHFLAGS
     539
     540## PROPS_ACCUMULATE
     541# The list of accumulative target properties where the left most value/flag
     542# is the 'most significant'.
     543# A Config.kmk file can add it's own properties to this list and kBuild
     544# will do the necessary inheritance from templates to targets.
     545PROPS_ACCUMULATE_L := \
     546        SDKS SOURCES \
     547        INCS CINCS CXXINCX ASINCS RCINCS \
     548        LIBS LIBPATH
    537549
    538550
Note: See TracChangeset for help on using the changeset viewer.