1 |
# top-level Scons configuration file for all finley unit tests |
# top-level Scons configuration file for all finley unit tests |
2 |
|
|
|
import os |
|
|
|
|
3 |
# |
# |
4 |
# ensure correct versions of python and scons |
# set appropriate configuration variable defaults |
5 |
|
esysroot=str(Dir('./../../').abspath) |
6 |
EnsurePythonVersion(2,3) |
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
|
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"]) |
|
7 |
|
|
8 |
# |
# |
9 |
# call appropriate SConscripts |
# call appropriate SConscripts |
10 |
|
|
11 |
target_scripts = ['MeshAdapter/SConstruct'] |
target_scripts = ['MeshAdapter/SConscript'] |
12 |
|
|
13 |
SConscript(target_scripts, duplicate=0) |
SConscript(target_scripts, duplicate=0) |