Import('env')
import SENFSCons, glob, sys
-sys.path.append(env.Dir('#/doclib').abspath)
import yaptu
###########################################################################
# -*- python -*-
import sys, glob, os.path, datetime, pwd, time, fnmatch, string
-sys.path.append('senfscons')
+sys.path.append(Dir('#/senfscons').abspath)
+sys.path.append(Dir('#/doclib').abspath)
import SENFSCons
###########################################################################
env.Append(CPPDEFINES = [ '$EXTRA_DEFINES' ],
LIBS = [ '$EXTRA_LIBS' ],
- ALLLIBS = [])
+ ALLOBJECTS = [])
return env
test_sources = sources,
LIBS = [ '$LIBSENF' ],
OBJECTS = OBJECTS,
- DEPENDS = [ env.File(LibPath(x)) for x in LIBS ]) ]
+ DEPENDS = [ env.File(LibPath(env['LIBSENF'])) ]) ]
compileTestSources = [ src for src in sources
if 'COMPILE_CHECK' in file(src).read() ]
if compileTestSources:
test_sources = testSources,
LIBS = [ '$LIBSENF' ],
OBJECTS = OBJECTS,
- DEPENDS = [ env.File(LibPath(x)) for x in LIBS ]) ]
+ DEPENDS = [ env.File(LibPath(env['LIBSENF'])) ]) ]
compileTestSources = [ src for src in testSources
if 'COMPILE_CHECK' in file(src).read() ]
if compileTestSources:
progEnv.Prepend(LIBS = [ '$LIBSENF' ])
program = progEnv.ProgramNoScan(target=binary,source=objects+OBJECTS)
env.Default(program)
- env.Depends(program, [ '$LIBSENF' ])
+ env.Depends(program, [ env.File(LibPath(env['LIBSENF'])) ])
env.Alias('default', program)
InstallWithSources(env, program, '$BININSTALLDIR', sources, testSources, no_includes)
return program