diff options
author | Steven Knight <knight@baldmt.com> | 2004-02-28 07:25:33 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-02-28 07:25:33 (GMT) |
commit | 5b26639256205eabd4e055040c7529b8ec868dcf (patch) | |
tree | b96b3d5464cd6dd6ace593a33590834dc428e5eb /test/Repository | |
parent | dfa9ded59f8641221328e2da7a06698a1b367ef1 (diff) | |
download | SCons-5b26639256205eabd4e055040c7529b8ec868dcf.zip SCons-5b26639256205eabd4e055040c7529b8ec868dcf.tar.gz SCons-5b26639256205eabd4e055040c7529b8ec868dcf.tar.bz2 |
Document the dbm_module argument to SConsignFile().
Diffstat (limited to 'test/Repository')
-rw-r--r-- | test/Repository/variants.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Repository/variants.py b/test/Repository/variants.py index 7e438ec..a0cc2af 100644 --- a/test/Repository/variants.py +++ b/test/Repository/variants.py @@ -78,13 +78,13 @@ opts = "-Y " + test.workpath('repository') test.write(['repository', 'SConstruct'], r""" OS = ARGUMENTS.get('OS', '') build1_os = "#build1/" + OS -default_ccflags = Environment()['CCFLAGS'] +default = Environment() ccflags = { '' : '', 'foo' : '-DFOO', 'bar' : '-DBAR', } -env1 = Environment(CCFLAGS = default_ccflags + ' ' + ccflags[OS], +env1 = Environment(CCFLAGS = default.subst('$CCFLAGS %s' % ccflags[OS]), CPPPATH = build1_os) BuildDir(build1_os, 'src1') SConscript(build1_os + '/SConscript', "env1") @@ -101,8 +101,8 @@ env1.Program('xxx', ['aaa.c', 'bbb.c', 'main.c']) test.write(['repository', 'build2', 'foo', 'SConscript'], r""" BuildDir('src2', '#src2') -default_ccflags = Environment()['CCFLAGS'] -env2 = Environment(CCFLAGS = default_ccflags + ' -DFOO', +default = Environment() +env2 = Environment(CCFLAGS = default.subst('$CCFLAGS -DFOO'), CPPPATH = ['#src2/xxx', '#src2/include']) SConscript('src2/xxx/SConscript', "env2") @@ -111,8 +111,8 @@ SConscript('src2/xxx/SConscript', "env2") test.write(['repository', 'build2', 'bar', 'SConscript'], r""" BuildDir('src2', '#src2') -default_ccflags = Environment()['CCFLAGS'] -env2 = Environment(CCFLAGS = default_ccflags + ' -DBAR', +default = Environment() +env2 = Environment(CCFLAGS = default.subst('$CCFLAGS -DBAR'), CPPPATH = ['#src2/xxx', '#src2/include']) SConscript('src2/xxx/SConscript', "env2") |