Replace SENFSCons.InstallIncludeFiles with InstallSubdir builder calls
[senf.git] / Socket / Protocols / Raw / SConscript
index 4e77b00..83b578b 100644 (file)
@@ -5,15 +5,13 @@ import SENFSCons, glob
 
 ###########################################################################
 
-sources = SENFSCons.GlobSources()
+SConscript(glob.glob("*/SConscript"))
 
-allob = []
+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') ])
 
-allob.extend(
-    SENFSCons.Objects( env, sources = sources, LIBS = [ 'Socket', 'Utils' ] ) )
+sources, includes = SENFSCons.Glob(env)
 
-for sc in glob.glob("*/SConscript"):
-    ob = SConscript(sc)
-    if ob : allob.extend(ob)
+SENFSCons.Lib(env, sources)
 
-Return('allob')
+env.InstallSubdir(target = '$INCLUDEINSTALLDIR', source = includes)