1 |
# Scons configuration file for doxygen docs |
2 |
|
3 |
import os |
4 |
import sys |
5 |
|
6 |
# |
7 |
# ensure correct versions of python and scons |
8 |
|
9 |
EnsurePythonVersion(2,3) |
10 |
EnsureSConsVersion(0,96) |
11 |
|
12 |
# |
13 |
# set appropriate defaults for configuration variables |
14 |
|
15 |
esysroot = Dir('#../..') |
16 |
|
17 |
# |
18 |
# import configuration variables passed in from |
19 |
# calling SConscript (if any) |
20 |
|
21 |
Import('*') |
22 |
|
23 |
# |
24 |
# load configuration settings |
25 |
|
26 |
options_dir = str(esysroot) + '/scons' |
27 |
sys.path.append(options_dir) |
28 |
|
29 |
# |
30 |
# do the actual build |
31 |
|
32 |
source = 'rundoxygen' |
33 |
|
34 |
doxygen_env = Environment(ENV = os.environ) |
35 |
|
36 |
import scons_extensions |
37 |
runDoxygen_builder = Builder(action = scons_extensions.build_doxygen, suffix = ".run", single_source = True) |
38 |
doxygen_env.Append(BUILDERS = {'RunDoxygen' : runDoxygen_builder}) |
39 |
|
40 |
Default(doxygen_env.RunDoxygen(source)) |