Add another scons (old version) workaround
[senf.git] / Utils / SConscript
index 8d67e70..75a2b96 100644 (file)
@@ -7,15 +7,22 @@ import SENFSCons, glob
 
 SENFSCons.StandardTargets(env)
 
+# OUCH ... another hack to work around a scons bug ...
+Execute(Touch("Logger/all_includes.hh"))
+
 sources, testSources = SENFSCons.GlobSources()
-objects = SENFSCons.Objects( env, sources = sources )
+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,
-              library = 'Utils',
-              sources = objects)
+lib = SENFSCons.Lib(env,
+                    library = 'Utils',
+                    sources = objects,
+                    no_includes = True)
+
+SENFSCons.InstallSourceIncludes(env, Flatten([ lib, '.test.bin', 'Logger/.test.bin' ]))
 
 SENFSCons.Doxygen(env)
+SENFSCons.InstallIncludeFiles(env, [ 'Logger.hh', 'Daemon.hh' ])