X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senfscons%2FSENFSCons.py;h=a4a3620cc1ed7a77fb1742542600fb0e045184c6;hb=2c4c9deecc7491fbfc916aeb41074dcb76e8a2c2;hp=13be7552fc96a14240e27754115fc74fcee444a9;hpb=e21a814c84efb8ba3a6a978c6907f3c401c649ff;p=senf.git diff --git a/senfscons/SENFSCons.py b/senfscons/SENFSCons.py index 13be755..a4a3620 100644 --- a/senfscons/SENFSCons.py +++ b/senfscons/SENFSCons.py @@ -296,16 +296,25 @@ def Objects(env, sources, testSources = None, LIBS = [], OBJECTS = []): if type(sources) == type(()): testSources = sources[1] sources = sources[0] + if type(sources) is not type([]): + sources = [ sources ] objects = None if sources: - objects = env.Object(sources) + objects = env.Object([ + source + for source in sources + if not str(source).endswith('.o') ]) + [ + source + for source in sources + if str(source).endswith('.o') ] + if testSources: test = env.BoostUnitTests( target = 'test', - source = sources, - test_source = testSources, + objects = objects, + test_sources = testSources, LIBS = LIBS, OBJECTS = OBJECTS, DEPENDS = [ env.File(LibPath(x)) for x in LIBS ])