Combine all boot build stuff in a single scons tool
[senf.git] / Socket / SConscript
1 # -*- python -*-
2
3 Import('env')
4 import SENFSCons, glob
5
6 ###########################################################################
7
8 SConscript(glob.glob("*/SConscript"))
9
10 SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
11                                if f not in ('all_includes.hh','Socket.hh') and not f.endswith('.test.hh') ])
12
13 sources, tests, includes = SENFSCons.Glob(env)
14
15 env.Append(ALLOBJECTS = env.Object(sources))
16 env.BoostUnitTest('test', tests)
17 SENFSCons.Doxygen(env, extra_sources = [
18     env.Dia2Png('SocketLibrary-classes.dia'),
19     env.Dia2Png('FhHierarchy.dia'),
20     env.Dia2Png('SocketPolicy.dia'),
21     env.Dia2Png('Protocols.dia'),
22     env.Dia2Png('Handle.dia'),
23 ])
24 env.InstallSubdir('$INCLUDEINSTALLDIR', includes)