Socket/Protocols/INet: Fix address class documentation
[senf.git] / SConstruct
1 # -*- python -*-
2
3 import sys, glob, os.path, datetime
4 sys.path.append('senfscons')
5 import SENFSCons
6
7 ###########################################################################
8
9 # Load utilities and setup libraries
10 SENFSCons.UseBoost()
11 SENFSCons.UseSTLPort()
12 env = SENFSCons.MakeEnvironment()
13
14 # Configure build
15 env.Append(
16    CPPPATH = [ '#' ],
17    LIBS = [ 'iberty', '$BOOSTREGEXLIB' ],
18    DOXY_XREF_TYPES = [ 'bug', 'fixme', 'todo', 'idea' ],
19    DOXY_HTML_XSL = '#/doclib/html-munge.xsl',
20    ENV = { 'TODAY' : str(datetime.date.today()),
21            'REVISION' : os.popen("svnversion").read().strip()
22            },
23 )
24
25 Export('env')
26
27 # Build modules (that is, instruct to build ... the build happens later)
28 SConscript(glob.glob("*/SConscript"))
29
30 SENFSCons.StandardTargets(env)
31 SENFSCons.GlobalTargets(env)
32 SENFSCons.Doxygen(env)
33
34 SENFSCons.DoxyXRef(env,
35                    HTML_HEADER = '#/doclib/doxy-header-overview.html',
36                    HTML_FOOTER = '#/doclib/doxy-footer.html')
37
38 # Create Doxyfile.local if not cleaning and the file does not exist
39 # otherwise doxygen will barf on this non-existent file
40 if not env.GetOption('clean') and not os.path.exists("Doxyfile.local"):
41     Execute(Touch("Doxyfile.local"))