1 |
# top-level Scons configuration file for all documentation building |
# Scons configuration file for documentation |
|
|
|
|
import os |
|
|
|
|
|
# |
|
|
# ensure correct versions of python and scons |
|
|
|
|
|
EnsurePythonVersion(2,3) |
|
|
EnsureSConsVersion(0,96) |
|
|
|
|
|
# |
|
|
# retreive command-line arguments if any |
|
|
# these are passed through to SConscripts |
|
2 |
|
|
3 |
# |
# |
4 |
# set and export esysroot |
# set appropriate defaults for configuration variables |
|
|
|
|
esysroot = Dir('#../') |
|
|
|
|
|
Import('*') |
|
5 |
|
|
6 |
Export(["esysroot"]) |
esysroot=str(Dir('..').abspath) |
7 |
|
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
8 |
|
|
9 |
# |
# |
10 |
# call appropriate SConscripts |
# call appropriate SConscripts |
11 |
|
|
12 |
target_scripts = ['doxygen/SConscript', |
target_scripts = ['doxygen/SConscript', |
|
'epydoc/SConscript', |
|
|
'user/SConscript'] |
|
|
|
|
|
target_scripts = ['doxygen/SConscript', |
|
13 |
'epydoc/SConscript'] |
'epydoc/SConscript'] |
14 |
|
|
15 |
SConscript(target_scripts, duplicate=0) |
SConscript(target_scripts, duplicate=0) |