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