3 import sys, glob, os.path, datetime
4 sys.path.append('senfscons')
7 ###########################################################################
9 # Load subversion information
11 [ map(lambda y:y.strip(),x.split(":",1))
12 for x in os.popen("svn info").read().split("\n")
14 svninfo['commited'] = not(os.popen("svn status -q").read())
16 # Load utilities and setup libraries
18 SENFSCons.UseSTLPort()
19 env = SENFSCons.MakeEnvironment()
25 DOXY_XREF_TYPES = [ 'bug', 'fixme', 'todo', 'idea' ],
26 DOXY_HTML_XSL = '#/doclib/html-munge.xsl',
27 ENV = { 'TODAY' : str(datetime.date.today()),
28 'REVISION' : svninfo['Revision'] + (not(svninfo['commited']) and " + local changes" or ""),
34 # Build modules (that is, instruct to build ... the build happens later)
35 SConscript(glob.glob("*/SConscript"))
37 SENFSCons.StandardTargets(env)
38 SENFSCons.GlobalTargets(env)
39 SENFSCons.Doxygen(env)
42 # 'Examples/Sniffer/Sniffer.cc',
44 SENFSCons.DoxyXRef(env,
45 HTML_HEADER = '#/doclib/doxy-header-overview.html',
46 HTML_FOOTER = '#/doclib/doxy-footer.html')
48 # Create Doxyfile.local if not cleaning and the file does not exist
49 # otherwise doxygen will barf on this non-existent file
50 if not env.GetOption('clean') and not os.path.exists("Doxyfile.local"):
51 Execute(Touch("Doxyfile.local"))