1 |
# top-level Scons configuration file for all esys13 modules |
# top-level Scons configuration file for all esys13 modules |
|
|
|
|
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 |
|
|
|
|
|
if ARGUMENTS.get('libinstall',0): |
|
|
libinstall = ARGUMENTS.get('libinstall',0) |
|
|
else: |
|
|
libinstall = None |
|
|
Export(["libinstall"]) |
|
|
|
|
|
if ARGUMENTS.get('pyinstall',0): |
|
|
pyinstall = ARGUMENTS.get('pyinstall',0) |
|
|
else: |
|
|
pyinstall = None |
|
|
Export(["pyinstall"]) |
|
|
|
|
|
if ARGUMENTS.get('options',0): |
|
|
options = ARGUMENTS.get('options',0) |
|
|
else: |
|
|
options = None |
|
|
Export(["options"]) |
|
|
|
|
|
if ARGUMENTS.get('debug',0): |
|
|
dodebug = 1 |
|
|
else: |
|
|
dodebug = 0 |
|
|
Export(["dodebug"]) |
|
|
|
|
|
if ARGUMENTS.get('usegcc',0): |
|
|
usegcc = 1 |
|
|
else: |
|
|
usegcc = 0 |
|
|
Export(["usegcc"]) |
|
|
|
|
2 |
# |
# |
3 |
# set and export esysroot |
# set appropriate defaults for configuration variables |
4 |
|
esysroot=str(Dir('.').abspath) |
5 |
esysroot = Dir('#.') |
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
|
Export(["esysroot"]) |
|
6 |
|
|
7 |
# |
# |
8 |
# call appropriate SConscripts |
# call appropriate SConscripts |
14 |
'bruce/SConstruct', |
'bruce/SConstruct', |
15 |
'paso/SConstruct', |
'paso/SConstruct', |
16 |
'finley/SConstruct', |
'finley/SConstruct', |
17 |
'modellib/SConstruct', |
'modellib/SConstruct'] |
18 |
'doc/SConstruct'] |
|
19 |
|
# 'doc/SConstruct'] |
20 |
|
|
21 |
SConscript(target_scripts, duplicate=0) |
SConscript(target_scripts, duplicate=0) |