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