Replace SENFSCons.InstallIncludeFiles with InstallSubdir builder calls
[senf.git] / Utils / SConscript
index 561137b..ef0872c 100644 (file)
@@ -1,21 +1,15 @@
 # -*- python -*-
 
 Import('env')
-import SENFSCons, glob
+import SENFSCons, glob, os.path
 
 ###########################################################################
 
-SENFSCons.StandardTargets(env)
+sources, includes = SENFSCons.Glob(env, subdirs=[ 'impl' ])
 
-sources, testSources = SENFSCons.GlobSources()
-objects = SENFSCons.Objects( env, sources = sources, testSources=testSources )
-
-for sc in glob.glob("*/SConscript"):
-    ob = SConscript(sc)
-    if ob : objects.extend(ob)
+SENFSCons.Lib(env, sources)
+SENFSCons.Doxygen(env)
 
-SENFSCons.Lib(env,
-              library = 'Utils',
-              sources = objects)
+env.InstallSubdir(target = '$INCLUDEINSTALLDIR', source = includes)
 
-SENFSCons.Doxygen(env)
+SConscript(glob.glob("*/SConscript"))