X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FSConscript;h=3ed13bf46a5f2a02df1f7c5eb4ab01480831bcac;hb=21bad90912447cd2d390112cf2d2a7d383ad8058;hp=b39aa6539a75d2274e07c1940818ca506f2f608f;hpb=33157146abaca548e145c577a0840cd1bd427789;p=senf.git diff --git a/Packets/SConscript b/Packets/SConscript index b39aa65..3ed13bf 100644 --- a/Packets/SConscript +++ b/Packets/SConscript @@ -1,19 +1,28 @@ # -*- python -*- Import('env') -import SENFSCons +import SENFSCons, glob ########################################################################### -sources = SENFSCons.GlobSources() +def makeAllIncludesHH(target, headers): + file(env.File(target).abspath,"w").write("".join([ '#include "%s"\n' % f + for f in headers ])) -SENFSCons.StandardTargets(env) +########################################################################### + +source_headers = [ f for f in glob.glob("*.hh") + if 'defined(SENF_PACKETS_DECL_ONLY)' in file(f).read() ] +source_headers.sort() +makeAllIncludesHH('all_includes.hh', source_headers) +SENFSCons.StandardTargets(env) SENFSCons.Lib(env, library = 'Packets', - sources = sources, + sources = SENFSCons.GlobSources(), LIBS = [ 'Socket', 'Utils' ]) - SENFSCons.Doxygen(env, extra_sources = [ env.Dia2Png("structure.dia") ]) + +SConscript(glob.glob("*/SConscript"))