X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senfscons%2FBoostUnitTests.py;h=2dce3ba1e2b94720319137e600039ed2825a8d12;hb=e21a814c84efb8ba3a6a978c6907f3c401c649ff;hp=e6aed7af765857d2063e03625fca1bc36972217f;hpb=2d51a34f79dd18b23c54172444b2cc7433b8f5f0;p=senf.git diff --git a/senfscons/BoostUnitTests.py b/senfscons/BoostUnitTests.py index e6aed7a..2dce3ba 100644 --- a/senfscons/BoostUnitTests.py +++ b/senfscons/BoostUnitTests.py @@ -26,7 +26,7 @@ import SCons.Defaults import os.path import os -def BoostUnitTests(env, target, source, test_source=None, LIBS = [], DEPENDS = [], **kw): +def BoostUnitTests(env, target, source, test_source=None, LIBS = [], OBJECTS = [], DEPENDS = [], **kw): path, name = os.path.split(target) if test_source: if type(test_source) is not type([]): @@ -38,7 +38,7 @@ def BoostUnitTests(env, target, source, test_source=None, LIBS = [], DEPENDS = [ testEnv.Prepend(LIBS = LIBS) sources = [] if source: - sources = sources + env.Object(source) + sources = sources + env.Object(source) + OBJECTS sources = sources + test_source binName = os.path.join(path,'.' + name +'.bin') testRunner = testEnv.Program(binName, sources)