Simplify ALlIncludesHH usage
[senf.git] / PPI / SConscript
index 199c62d..d74fc60 100644 (file)
@@ -1,3 +1,5 @@
+# -*- python -*-
+
 Import('env')
 import SENFSCons, glob
 
@@ -5,16 +7,17 @@ import SENFSCons, glob
 
 SConscript(glob.glob("*/SConscript"))
 
-sources = SENFSCons.GlobSources(subdirs=[ 'detail' ])
+SENFSCons.AllIncludesHH(env, exclude = ['PPI.hh'])
 
-SENFSCons.StandardTargets(env)
+sources, tests, includes = SENFSCons.Glob(env, subdirs=[ 'detail' ])
 
-SENFSCons.Lib(env,
-             library = 'PPI',
-             sources = sources,
-             LIBS = [ 'Scheduler', 'Packets', 'Socket', 'Utils' ])
+env.Append(ALLOBJECTS = env.Object(sources))
+env.BoostUnitTest('test', tests)
 
 SENFSCons.Doxygen(env, extra_sources=[
     env.Dia2Png('scenario.dia'),
     env.Dia2Png('classes.dia'),
+    env.Dia2Png('ratestuffer.dia'),
 ])
+
+env.InstallSubdir('$INCLUDEINSTALLDIR', includes)