'\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
.TP
-.RI SConsignFile([ file ])
+.RI SConsignFile([ file , dbm_module ])
.TP
-.RI env.SConsignFile([ file ])
+.RI env.SConsignFile([ file , dbm_module ])
This tells
.B scons
to store all file signatures
the file is placed in the same directory as the top-level
.B SConstruct
file.
+
+The optional
+.I dbm_module
+argument can be used to specify
+which Python database module
+The default is to use
+.B dumbdbm
+if the specified
+.I file
+does not already exist,
+and to use
+.B anydbm
+to auto-detect the database format
+if the
+.I file
+already exists.
+
Examples:
.ES
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")
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")
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")