Move Console from Scheduler into Utils
[senf.git] / Utils / SConscript
index 8d67e70..d17af8a 100644 (file)
@@ -1,21 +1,24 @@
 # -*- python -*-
 
 Import('env')
-import SENFSCons, glob
+import SENFSCons, glob, os.path
 
 ###########################################################################
 
 SENFSCons.StandardTargets(env)
 
-sources, testSources = SENFSCons.GlobSources()
-objects = SENFSCons.Objects( env, sources = sources )
+# OUCH ... another hack to work around a scons bug ...
+if not os.path.exists("Logger/all_includes.hh"):
+    Execute(Touch("Logger/all_includes.hh"))
 
-for sc in glob.glob("*/SConscript"):
-    ob = SConscript(sc)
-    if ob : objects.extend(ob)
+sources, testSources = SENFSCons.GlobSources()
+objects = SENFSCons.Objects( env, sources = sources, testSources=testSources )
 
-SENFSCons.Lib(env,
-              library = 'Utils',
-              sources = objects)
+lib = SENFSCons.Lib(env,
+                    library = 'Utils',
+                    sources = objects)
 
 SENFSCons.Doxygen(env)
+SENFSCons.InstallIncludeFiles(env, [ 'Logger.hh', 'Daemon.hh' ])
+
+SConscript(glob.glob("*/SConscript"))