Combine all boot build stuff in a single scons tool
[senf.git] / PPI / SConscript
index a1b65ae..50962cd 100644 (file)
@@ -1,10 +1,25 @@
+# -*- python -*-
+
 Import('env')
-import SENFSCons
+import SENFSCons, glob
 
 ###########################################################################
 
-SENFSCons.StandardTargets(env)
+SConscript(glob.glob("*/SConscript"))
+
+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') ])
+
+sources, tests, includes = SENFSCons.Glob(env, subdirs=[ 'detail' ])
+
+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)