1 |
# top-level Scons configuration file for all esysUtils unit tests |
2 |
|
3 |
# Copyright 2006 by ACcESS MNRF |
4 |
# |
5 |
# http://www.access.edu.au |
6 |
# Primary Business: Queensland, Australia |
7 |
# Licensed under the Open Software License version 3.0 |
8 |
# http://www.opensource.org/licenses/osl-3.0.php |
9 |
# |
10 |
# |
11 |
import os |
12 |
|
13 |
# |
14 |
# ensure correct versions of python and scons |
15 |
|
16 |
EnsurePythonVersion(2,3) |
17 |
EnsureSConsVersion(0,96) |
18 |
|
19 |
# |
20 |
# retreive command-line arguments if any |
21 |
# these are passed through to SConscripts |
22 |
|
23 |
if ARGUMENTS.get('usegcc',0): |
24 |
usegcc = 1 |
25 |
else: |
26 |
usegcc = 0 |
27 |
Export(["usegcc"]) |
28 |
|
29 |
if ARGUMENTS.get('options',0): |
30 |
options = ARGUMENTS.get('options',0) |
31 |
else: |
32 |
options = None |
33 |
Export(["options"]) |
34 |
|
35 |
# |
36 |
# set and export esysroot |
37 |
|
38 |
esysroot = Dir('#../..') |
39 |
Export(["esysroot"]) |
40 |
|
41 |
# |
42 |
# call appropriate SConscripts |
43 |
|
44 |
target_scripts = ['EsysException/SConstruct'] |
45 |
|
46 |
SConscript(target_scripts, duplicate=0) |