Utils/Logger: Complete unit testing
[senf.git] / Packets / SConscript
index 27f0650..64bc78c 100644 (file)
@@ -5,17 +5,17 @@ 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"))
+