X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSConscript;h=b117eacac176fdf77a15f5e0f61cbf86445ecbd6;hb=ea8b2923c29a6902f507db2b485a44a58e9406f0;hp=373bffc47ad677efb987855b7e2ef35a058097f5;hpb=558583531d5042ece06b19fcd10132d2d1bc5ad0;p=senf.git diff --git a/Utils/SConscript b/Utils/SConscript index 373bffc..b117eac 100644 --- a/Utils/SConscript +++ b/Utils/SConscript @@ -1,11 +1,25 @@ # -*- python -*- Import('env') -import SatSCons +import SENFSCons, glob ########################################################################### -sources = SatSCons.GlobSources() -SatSCons.StandardTargets(env) -SatSCons.Lib(env, 'Utils', sources) -SatSCons.Doxygen(env, sources, SatSCons.DoxyGlob()) +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' ])