# -*- python -*-
Import('env')
-import SatSCons
+import SENFSCons, glob
###########################################################################
-sources = SatSCons.GlobSources()
-SatSCons.StandardTargets(env)
-SatSCons.Lib(env, 'Utils', sources)
-SatSCons.Doxygen(env, sources, SatSCons.DoxyGlob())
+SENFSCons.StandardTargets(env)
+
+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)
+
+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' ])