+# -*- python -*-
+
Import('env')
-import SatSCons
+import SENFSCons, glob
###########################################################################
-sources = SatSCons.GlobSources()
+SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
+ if f not in ('all_includes.hh','Socket.hh') and not f.endswith('.test.hh') ])
+
+sources, testSources = SENFSCons.GlobSources()
+
+SENFSCons.StandardTargets(env)
+
+subob = []
+for sc in glob.glob("*/SConscript"):
+ ob = SConscript(sc)
+ if ob : subob.extend(ob)
-SatSCons.StandardTargets(env)
+SENFSCons.Lib(env,
+ library = 'Socket',
+ sources = sources + subob,
+ testSources = testSources,
+ LIBS = [ 'Utils' ])
-SatSCons.Lib(env,
- library = 'Socket',
- sources = sources,
- LIBS = [ 'Utils' ])
+SENFSCons.Doxygen(env, extra_sources = [
+ env.Dia2Png('SocketLibrary-classes.dia'),
+ env.Dia2Png('FhHierarchy.dia'),
+ env.Dia2Png('SocketPolicy.dia'),
+ env.Dia2Png('Protocols.dia'),
+ env.Dia2Png('Handle.dia'),
+])
-SatSCons.Doxygen(env,sources)
+SENFSCons.InstallIncludeFiles(env, [ 'Socket.hh', 'all_includes.hh' ])