1 |
# top-level Scons configuration file for all finley unit tests |
# top-level Scons configuration file for all finley unit tests |
2 |
|
esysroot=str(Dir('./../../').abspath) |
3 |
import os |
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
|
|
|
|
# |
|
|
# 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('usegcc',0): |
|
|
usegcc = 1 |
|
|
else: |
|
|
usegcc = 0 |
|
|
Export(["usegcc"]) |
|
|
|
|
|
if ARGUMENTS.get('options',0): |
|
|
options = ARGUMENTS.get('options',0) |
|
|
else: |
|
|
options = None |
|
|
Export(["options"]) |
|
|
|
|
|
# |
|
|
# set and export esysroot |
|
|
|
|
|
esysroot = Dir('#../..') |
|
|
Export(["esysroot"]) |
|
4 |
|
|
5 |
# |
# |
6 |
# call appropriate SConscripts |
# call appropriate SConscripts |
7 |
|
|
8 |
target_scripts = ['MeshAdapter/SConstruct'] |
target_scripts = ['MeshAdapter/SConscript'] |
9 |
|
|
10 |
SConscript(target_scripts, duplicate=0) |
SConscript(target_scripts, duplicate=0) |