X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSConscript;h=a39e7f6c9f983460285920b4da72aca200ebb7d0;hb=6a0836b7f462d3d77b79b35638cdbf4c9d4202fc;hp=8d67e70d5fd8dbfd89f547439f028e4050e6bc0f;hpb=b52002fa2001e6472d6aa3dde263b85f654c6e8e;p=senf.git diff --git a/Utils/SConscript b/Utils/SConscript index 8d67e70..a39e7f6 100644 --- a/Utils/SConscript +++ b/Utils/SConscript @@ -1,21 +1,29 @@ # -*- python -*- Import('env') -import SENFSCons, glob +import SENFSCons, glob, os.path ########################################################################### SENFSCons.StandardTargets(env) +# 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 ) +objects = SENFSCons.Objects( env, sources = sources, testSources=testSources ) for sc in glob.glob("*/SConscript"): ob = SConscript(sc) if ob : objects.extend(ob) -SENFSCons.Lib(env, - library = 'Utils', - sources = objects) +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' ])