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