1 |
# top-level Scons configuration file for all bruce unit tests |
2 |
|
3 |
# this is not fully implemented - just a placeholder script for now |
4 |
|
5 |
import os |
6 |
|
7 |
# |
8 |
# ensure correct versions of python and scons |
9 |
|
10 |
EnsurePythonVersion(2,3) |
11 |
EnsureSConsVersion(0,96) |
12 |
|
13 |
# |
14 |
# retreive command-line arguments if any |
15 |
# these are passed through to SConscripts |
16 |
|
17 |
if ARGUMENTS.get('usegcc',0): |
18 |
usegcc = 1 |
19 |
else: |
20 |
usegcc = 0 |
21 |
Export(["usegcc"]) |
22 |
|
23 |
# |
24 |
# set and export esysroot |
25 |
|
26 |
esysroot = Dir('#..') |
27 |
Export(["esysroot"]) |
28 |
|
29 |
# |
30 |
# call appropriate SConscripts |
31 |
|
32 |
target_scripts = ['Bruce/SConstruct', |
33 |
'BruceFactory/SConstruct'] |
34 |
|
35 |
SConscript(target_scripts, duplicate=0) |