X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSConscript;h=b117eacac176fdf77a15f5e0f61cbf86445ecbd6;hb=6684208965aac5a93db01bcd189bc5c501f04c2c;hp=81cb37c6bbe7c49d98776743ebe3314dcde2a561;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Utils/SConscript b/Utils/SConscript index 81cb37c..b117eac 100644 --- a/Utils/SConscript +++ b/Utils/SConscript @@ -1,7 +1,25 @@ +# -*- python -*- + Import('env') -import SatSCons +import SENFSCons, glob ########################################################################### -SatSCons.StandardTargets(env) -SatSCons.Lib(env, 'Utils', SatSCons.GlobSources()) +SENFSCons.StandardTargets(env) + +sources, testSources = SENFSCons.GlobSources() +objects = SENFSCons.Objects( env, sources = sources, testSources=testSources ) + +for sc in glob.glob("*/SConscript"): + ob = SConscript(sc) + if ob : objects.extend(ob) + +lib = SENFSCons.Lib(env, + library = 'Utils', + sources = objects, + no_includes = True) + +SENFSCons.InstallSourceIncludes(env, Flatten([ lib, '.test.bin', 'Logger/.test.bin' ])) + +SENFSCons.Doxygen(env) +SENFSCons.InstallIncludeFiles(env, [ 'Logger.hh', 'Daemon.hh' ])