75a2b96ccc6e01c2c174c821476ce53fa31bf823
[senf.git] / Utils / SConscript
1 # -*- python -*-
2
3 Import('env')
4 import SENFSCons, glob
5
6 ###########################################################################
7
8 SENFSCons.StandardTargets(env)
9
10 # OUCH ... another hack to work around a scons bug ...
11 Execute(Touch("Logger/all_includes.hh"))
12
13 sources, testSources = SENFSCons.GlobSources()
14 objects = SENFSCons.Objects( env, sources = sources, testSources=testSources )
15
16 for sc in glob.glob("*/SConscript"):
17     ob = SConscript(sc)
18     if ob : objects.extend(ob)
19
20 lib = SENFSCons.Lib(env,
21                     library = 'Utils',
22                     sources = objects,
23                     no_includes = True)
24
25 SENFSCons.InstallSourceIncludes(env, Flatten([ lib, '.test.bin', 'Logger/.test.bin' ]))
26
27 SENFSCons.Doxygen(env)
28 SENFSCons.InstallIncludeFiles(env, [ 'Logger.hh', 'Daemon.hh' ])