# created later are correct
if not env.GetOption('clean') and not os.path.exists(".prepare-stamp") \
- and not os.environ.get("SCONS"):
+ and not os.environ.get("SCONS") and COMMAND_LINE_TARGETS != [ 'prepare' ]:
env.Execute([ "scons prepare" ])
env.Clean('all', '.prepare-stamp')
# \ingroup builder
import SCons.Builder, SCons.Action, SCons.Environment, SCons.Node.FS
+try:
+ from SCons.Tool.install import installFunc, stringFunc
+except:
+ installFunc = SCons.Environment.installFunc
+ stringFunc = SCons.Environment.installString
def recursiveChildren(f):
rv = {}
self.source = source
def __call__(self, target, source, env):
- SCons.Environment.installFunc([self.target], [self.source], env)
+ installFunc([self.target], [self.source], env)
def generator(target, source, env, for_signature):
return [ SCons.Action.Action( Installer(trg, src),
- lambda a,b,c,s=SCons.Environment.installString([trg], [src], env):s )
+ lambda a,b,c,s=stringFunc([trg], [src], env):s )
for trg, src in zip(target,source) ]
InstallIncludes = SCons.Builder.Builder(emitter = emitter,
if runtime: runtime = "-" + runtime
env['BOOST_VARIANT'] = "-" + env['BOOST_TOOLSET'] + runtime
- env['BOOSTTESTLIB'] = 'libboost_unit_test_framework' + env['BOOST_VARIANT']
- env['BOOSTREGEXLIB'] = 'libboost_regex' + env['BOOST_VARIANT']
- env['BOOSTFSLIB'] = 'libboost_filesystem' + env['BOOST_VARIANT']
+ env['BOOSTTESTLIB'] = 'boost_unit_test_framework' + env['BOOST_VARIANT']
+ env['BOOSTREGEXLIB'] = 'boost_regex' + env['BOOST_VARIANT']
+ env['BOOSTFSLIB'] = 'boost_filesystem' + env['BOOST_VARIANT']
env.Append(LIBPATH = [ '$BOOST_LIBDIR' ],
CPPPATH = [ '$BOOST_INCLUDES' ])