Link statically against boost_unit_test_framework library
[senf.git] / Packets / SConscript
index b39aa65..64bc78c 100644 (file)
@@ -1,19 +1,21 @@
 # -*- python -*-
 
 Import('env')
-import SENFSCons
+import SENFSCons, glob
 
 ###########################################################################
 
-sources = SENFSCons.GlobSources()
+SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
+                               if 'defined(HH_Packets__decls_)' in file(f).read() ])
 
 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"))
+