Combine all boot build stuff in a single scons tool
[senf.git] / PPI / SConscript
index 6f021ce..50962cd 100644 (file)
@@ -1,21 +1,20 @@
+# -*- python -*-
+
 Import('env')
 import SENFSCons, glob
 
 ###########################################################################
 
-SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
-                               if f not in ('all_includes.hh','PPI.hh') and not f.endswith('.test.hh') ])
-
 SConscript(glob.glob("*/SConscript"))
 
-sources = SENFSCons.GlobSources(subdirs=[ 'detail' ])
+SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
+                               if f not in ('all_includes.hh','PPI.hh') \
+                                  and not f.endswith('.test.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'),
@@ -23,4 +22,4 @@ SENFSCons.Doxygen(env, extra_sources=[
     env.Dia2Png('ratestuffer.dia'),
 ])
 
-SENFSCons.InstallIncludeFiles(env, [ 'PPI.hh', 'all_includes.hh' ])
+env.InstallSubdir('$INCLUDEINSTALLDIR', includes)