1 |
jgs |
242 |
# top-level Scons configuration file for all bruce unit tests |
2 |
|
|
|
3 |
elspeth |
643 |
# 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 |
jgs |
242 |
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 |
jgs |
248 |
if ARGUMENTS.get('options',0): |
30 |
|
|
options = ARGUMENTS.get('options',0) |
31 |
|
|
else: |
32 |
|
|
options = None |
33 |
|
|
Export(["options"]) |
34 |
|
|
|
35 |
jgs |
242 |
# |
36 |
|
|
# set and export esysroot |
37 |
|
|
|
38 |
jgs |
248 |
esysroot = Dir('#../..') |
39 |
jgs |
242 |
Export(["esysroot"]) |
40 |
|
|
|
41 |
|
|
# |
42 |
|
|
# call appropriate SConscripts |
43 |
|
|
|
44 |
jgs |
288 |
target_scripts = ['Bruce/SConscript', |
45 |
|
|
'BruceFactory/SConscript'] |
46 |
jgs |
242 |
|
47 |
|
|
SConscript(target_scripts, duplicate=0) |