Combine all boot build stuff in a single scons tool
[senf.git] / Socket / SConscript
index 8925f1f..aac2ec5 100644 (file)
@@ -1,19 +1,24 @@
 # -*- python -*-
 
 Import('env')
-import SENFSCons
+import SENFSCons, glob
 
 ###########################################################################
 
-sources = SENFSCons.GlobSources()
+SConscript(glob.glob("*/SConscript"))
 
-SENFSCons.StandardTargets(env)
+SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
+                               if f not in ('all_includes.hh','Socket.hh') and not f.endswith('.test.hh') ])
 
-SENFSCons.Lib(env,
-             library = 'Socket',
-             sources = sources,
-             LIBS = [ 'Utils' ])
+sources, tests, includes = SENFSCons.Glob(env)
 
+env.Append(ALLOBJECTS = env.Object(sources))
+env.BoostUnitTest('test', tests)
 SENFSCons.Doxygen(env, extra_sources = [
-    env.Dia2Png('SocketLibrary-classes.dia')
-    ])
+    env.Dia2Png('SocketLibrary-classes.dia'),
+    env.Dia2Png('FhHierarchy.dia'),
+    env.Dia2Png('SocketPolicy.dia'),
+    env.Dia2Png('Protocols.dia'),
+    env.Dia2Png('Handle.dia'),
+])
+env.InstallSubdir('$INCLUDEINSTALLDIR', includes)