Changeset 1412 in kBuild for trunk/tests
- Timestamp:
- Mar 18, 2008 9:20:30 PM (17 years ago)
- Location:
- trunk/tests/inherit-bld
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/inherit-bld/Config.kmk
r1404 r1412 61 61 62 62 # 63 # For inherit-bld 6- overriding inheritance.63 # For inherit-bld7 - overriding inheritance. 64 64 # 65 65 KBUILD_BLD_TYPES += dbgbld7 … … 67 67 BLD_TYPE_dbgbld7_EXTENDS_BY = overriding 68 68 69 # 70 # For inherit-bld10 thru 19 - overriding inheritance. 71 # 72 KBUILD_BLD_TYPES += dbgbld10 dbgbld11 73 BLD_TYPE_dbgbld11_EXTENDS = dbgbld10 74 75 # 76 # For inherit-bld20 thru 29 - prepending inheritance. 77 # 78 KBUILD_BLD_TYPES += dbgbld20 dbgbld21 79 BLD_TYPE_dbgbld21_EXTENDS = dbgbld20 80 BLD_TYPE_dbgbld21_EXTENDS_BY = prepending 81 -
trunk/tests/inherit-bld/Makefile.kmk
r1405 r1412 55 55 inherit-bld4_BLD_TYPE = dbgbld4 56 56 inherit-bld4_DEFS.dbgbld3 = X=y 57 inherit-bld4_DEFS.dbgbld4 = $(inherit-bld4_DEFS.dbgbld3) # remove me58 57 inherit-bld4_SOURCES = ../dummy_defined_X.c 59 58 … … 63 62 inherit-bld5_BLD_TYPE = dbgbld5 64 63 inherit-bld5_DEFS.dbgbld3 = X=y y=0 65 #inherit-bld5_DEFS.dbgbld5 = y=42 66 inherit-bld5_DEFS.dbgbld5 = $(inherit-bld5_DEFS.dbgbld3) y=42 # remove me 64 inherit-bld5_DEFS.dbgbld5 = y=42 67 65 inherit-bld5_SOURCES = ../dummy_defined_X.c 68 66 … … 72 70 inherit-bld6_BLD_TYPE = dbgbld6 73 71 inherit-bld6_DEFS.dbgbld3 = X=y y=42 74 #inherit-bld6_DEFS.dbgbld6 = y=0 75 inherit-bld6_DEFS.dbgbld6 = y=0 $(inherit-bld6_DEFS.dbgbld3) # remove me 72 inherit-bld6_DEFS.dbgbld6 = y=0 76 73 inherit-bld6_SOURCES = ../dummy_defined_X.c 74 75 76 # 77 # Tests where we inherit from a target and force build type which 78 # relies on inheritance. These are the fine points... 79 # 80 PROGRAMS += inherit-bld10 81 inherit-bld10_TEMPLATE = TST 82 inherit-bld10_BLD_TYPE = dbgbld11 83 inherit-bld10_DEFS = X=y 84 inherit-bld10_DEFS.dbgbld10 = y=42 85 inherit-bld10_SOURCES = ../dummy_defined_X.c 86 87 # Tests that target and build inheriting works together. 88 PROGRAMS += inherit-bld11 89 inherit-bld11_EXTENDS = inherit-bld10 90 91 # Tests that dbgbld11 is picked from the target rather than the parent. 92 PROGRAMS += inherit-bld12 93 inherit-bld12_EXTENDS = inherit-bld10 94 inherit-bld12_DEFS = y=0 95 inherit-bld12_DEFS.dbgbld11 = X=z z=42 96 97 # Tests that prepending works. 98 PROGRAMS += inherit-bld20 99 inherit-bld20_TEMPLATE = TST 100 inherit-bld20_BLD_TYPE = dbgbld21 101 inherit-bld20_DEFS = X=y 102 inherit-bld20_DEFS.dbgbld20 = y=42 103 inherit-bld20_DEFS.dbgbld21 = y=0 104 #inherit-bld20_DEFS.dbgbld21 = y=0 y=42 <-- expected result. 105 inherit-bld20_SOURCES = ../dummy_defined_X.c 106 107 # Tests that prepending + target inheritance works as expected. funky! 108 PROGRAMS += inherit-bld21 109 inherit-bld21_EXTENDS = inherit-bld20 110 inherit-bld21_DEFS.dbgbld20 = Y=y 111 #inherit-bld21_DEFS.dbgbld21 = y=0 y=42 Y=y <-- expected result; dbgbld21 from parent + our dbgbld20. 112 inherit-bld21_SOURCES = ../dummy_defined_Y.c 77 113 78 114
Note:
See TracChangeset
for help on using the changeset viewer.