X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senfscons%2FSENFSCons.py;h=e385a9441b1ae72ab0e54a34a03084a86b538aab;hb=2c5ee014ddfed45406e238029600346c99870229;hp=97d5c3534c7554ce1c5445cc52d420b4bb055dd1;hpb=06367434e38b54b3fd4cea32bd4b67121b4349cd;p=senf.git diff --git a/senfscons/SENFSCons.py b/senfscons/SENFSCons.py index 97d5c35..e385a94 100644 --- a/senfscons/SENFSCons.py +++ b/senfscons/SENFSCons.py @@ -28,24 +28,11 @@ def Glob(env, exclude=[], subdirs=[]): return ( GlobSources(env, exclude, subdirs), GlobIncludes(env, exclude, subdirs) ) -def LibPath(lib): return '${LOCALLIBDIR}/${LIBPREFIX}%s${LIBADDSUFFIX}${LIBSUFFIX}' % lib - def Test(env, sources): - test = env.BoostUnitTests( target = 'test', - source = sources, - TEST_EXTRA_LIBS = [ '$LIBSENF$LIBADDSUFFIX' - ] + env['TEST_EXTRA_LIBS']) - - compileTestSources = [ src for src in sources - if 'COMPILE_CHECK' in file(src).read() ] - if compileTestSources: - env.Depends(test, env.CompileCheck(source = compileTestSources)) - + test=env.BoostUnitTest( target = 'test', source = sources ) env.Alias('all_tests', test) - return test - def Objects(env, sources, testSources = None): if type(sources) == type(()): testSources = sources[1]