env.Tool('Dia2Png', [ 'senfscons' ])
env.Tool('PkgDraw', [ 'senfscons' ])
env.Tool('CopyToDir', [ 'senfscons' ])
-env.Tool('ProgramNoScan', [ 'senfscons' ])
env.Tool('CompileCheck', [ 'senfscons' ])
env.Tool('Boost', [ 'senfscons' ])
env.Tool('BoostUnitTests', [ 'senfscons' ])
+++ /dev/null
-## \file
-# \brief CopyToDir builder
-
-## \package senfscons.ProgramNoScan
-# \brief Program builder without target scanner
-#
-# This build is like env.Program() but does not scan for library dependencies.
-# This is needed if library dependencies are added explicitly, which is needed
-# when libraries are built in the same build and therefore might not exist
-# before builting the program (and will therefore not be found by the target
-# scanner)
-#
-# \ingroup builder
-
-import SCons.Builder, SCons.Defaults
-
-ProgramNoScan = SCons.Builder.Builder(action = SCons.Defaults.LinkAction,
- emitter = '$PROGEMITTER',
- prefix = '$PROGPREFIX',
- suffix = '$PROGSUFFIX',
- src_suffix = '$OBJSUFFIX',
- src_builder = 'Object')
-
-def generate(env):
- env['BUILDERS']['ProgramNoScan'] = ProgramNoScan
-
-def exists(env):
- return 1
if objects:
progEnv = env.Clone()
progEnv.Prepend(LIBS = [ '$LIBSENF$LIBADDSUFFIX' ])
- program = progEnv.ProgramNoScan(target=binary,source=objects+OBJECTS)
+ program = progEnv.Program(target=binary,source=objects+OBJECTS)
env.Default(program)
- env.Depends(program, [ env.File(LibPath(env['LIBSENF'])) ])
env.Alias('default', program)
env.Alias('install_all', env.Install('$BININSTALLDIR', program))
return program