Combine all boot build stuff in a single scons tool
[senf.git] / Socket / Protocols / SConscript
index c5ca1ad..a55a9e0 100644 (file)
@@ -5,17 +5,10 @@ import SENFSCons, glob
 
 ###########################################################################
 
-sources = SENFSCons.GlobSources()
+SConscript(glob.glob("*/SConscript"))
 
-allob = []
+sources, tests, includes = SENFSCons.Glob(env)
 
-allob.extend(
-    SENFSCons.Objects( env, sources = sources, LIBS = [ 'Socket', 'Utils' ] ) )
-
-for sc in glob.glob("*/SConscript"):
-    ob = SConscript(sc)
-    if ob : allob.extend(ob)
-
-SENFSCons.InstallIncludeFiles(env, [ 'INet.hh', 'Raw.hh' ])
-
-Return('allob')
+env.Append(ALLOBJECTS = env.Object(sources))
+env.BoostUnitTest('test', tests)
+env.InstallSubdir('$INCLUDEINSTALLDIR', includes)