Move include files in debian packge into 'senf' subdirectory
[senf.git] / Socket / SConscript
1 # -*- python -*-
2
3 Import('env')
4 import SENFSCons, glob
5
6 ###########################################################################
7
8 SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
9                                if f not in ('all_includes.hh','Socket.hh') and not f.endswith('.test.hh') ])
10
11 sources, testSources = SENFSCons.GlobSources()
12
13 SENFSCons.StandardTargets(env)
14
15 subob = []
16 for sc in glob.glob("*/SConscript"):
17     ob = SConscript(sc)
18     if ob : subob.extend(ob)
19
20 SENFSCons.Lib(env,
21               library = 'Socket',
22               sources = sources + subob,
23               testSources = testSources,
24               LIBS = [ 'Utils' ])
25
26 SENFSCons.Doxygen(env, extra_sources = [
27     env.Dia2Png('SocketLibrary-classes.dia'),
28     env.Dia2Png('FhHierarchy.dia'),
29     env.Dia2Png('SocketPolicy.dia'),
30     env.Dia2Png('Protocols.dia'),
31     env.Dia2Png('Handle.dia'),
32 ])
33
34 SENFSCons.InstallIncludeFiles(env, [ 'Socket.hh', 'all_includes.hh' ])