X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSConscript;h=ef0872cfc8296579c846cc8a393366bcac9787e6;hb=b1f9349b1f3521d58cbef52ead0f2e5303a58c9e;hp=a39e7f6c9f983460285920b4da72aca200ebb7d0;hpb=1d247d12d1759ffd77f456efe3a52f03dd289994;p=senf.git diff --git a/Utils/SConscript b/Utils/SConscript index a39e7f6..ef0872c 100644 --- a/Utils/SConscript +++ b/Utils/SConscript @@ -5,25 +5,11 @@ import SENFSCons, glob, os.path ########################################################################### -SENFSCons.StandardTargets(env) +sources, includes = SENFSCons.Glob(env, subdirs=[ 'impl' ]) -# OUCH ... another hack to work around a scons bug ... -if not os.path.exists("Logger/all_includes.hh"): - Execute(Touch("Logger/all_includes.hh")) - -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.Lib(env, sources) +SENFSCons.Doxygen(env) -SENFSCons.InstallSourceIncludes(env, Flatten([ lib, '.test.bin', 'Logger/.test.bin' ])) +env.InstallSubdir(target = '$INCLUDEINSTALLDIR', source = includes) -SENFSCons.Doxygen(env) -SENFSCons.InstallIncludeFiles(env, [ 'Logger.hh', 'Daemon.hh' ]) +SConscript(glob.glob("*/SConscript"))