X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=SConstruct;h=50a148e4d5da3b2e182f262523562792504b9636;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=5271e8db139b20b84da274d03ddd34eb4a169611;hpb=11b5ed5acaf415f8a3d1ebb165aab76ea7c71179;p=senf.git diff --git a/SConstruct b/SConstruct index 5271e8d..50a148e 100644 --- a/SConstruct +++ b/SConstruct @@ -1,28 +1,41 @@ # -*- python -*- -import sys, glob -sys.path.append('satscons') -import SatSCons +import sys, glob, os.path, datetime +sys.path.append('senfscons') +import SENFSCons ########################################################################### -SatSCons.UseBoost() -SatSCons.UseSTLPort() -SatSCons.UseDoxygen() -env = SatSCons.MakeEnvironment() -env.Tool('Dia2Png', [ 'satscons' ]) +# Load utilities and setup libraries +SENFSCons.UseBoost() +SENFSCons.UseSTLPort() +env = SENFSCons.MakeEnvironment() +# Configure build env.Append( CPPPATH = [ '#' ], - LIBS = [ 'iberty' ], - DOXYFILES = [ '#/doclib/doxy-header.html', '#/doclib/doxy-footer.html', - '#/doclib/Doxyfile.global' ] + LIBS = [ 'iberty', '$BOOSTREGEXLIB' ], + DOXY_XREF_TYPES = [ 'bug', 'fixme', 'todo', 'idea' ], + DOXY_HTML_XSL = '#/doclib/html-munge.xsl', + ENV = { 'TODAY' : str(datetime.date.today()), + 'REVISION' : os.popen("svnversion").read().strip() + }, ) Export('env') +# Build modules (that is, instruct to build ... the build happens later) SConscript(glob.glob("*/SConscript")) -SatSCons.StandardTargets(env) -SatSCons.GlobalTargets(env) -SatSCons.Doxygen(env) +SENFSCons.StandardTargets(env) +SENFSCons.GlobalTargets(env) +SENFSCons.Doxygen(env) + +SENFSCons.DoxyXRef(env, + HTML_HEADER = '#/doclib/doxy-header-overview.html', + HTML_FOOTER = '#/doclib/doxy-footer.html') + +# Create Doxyfile.local if not cleaning and the file does not exist +# otherwise doxygen will barf on this non-existent file +if not env.GetOption('clean') and not os.path.exists("Doxyfile.local"): + Execute(Touch("Doxyfile.local"))