Combine all boot build stuff in a single scons tool
[senf.git] / Socket / Protocols / Raw / SConscript
index 5e09980..5f6b223 100644 (file)
@@ -5,20 +5,13 @@ import SENFSCons, glob
 
 ###########################################################################
 
+SConscript(glob.glob("*/SConscript"))
+
 SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
                                if f not in ('all_includes.hh','Raw.hh') and not f.endswith('.test.hh') ])
 
-sources = SENFSCons.GlobSources()
-
-allob = []
-
-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, [ 'Raw.hh', 'all_includes.hh' ])
+sources, tests, includes = SENFSCons.Glob(env)
 
-Return('allob')
+env.Append(ALLOBJECTS = env.Object(sources))
+env.BoostUnitTest('test', tests)
+env.InstallSubdir('$INCLUDEINSTALLDIR', includes)