1 |
|
# top-level Scons configuration file for all esys13 modules |
2 |
|
|
3 |
|
import os |
4 |
|
|
5 |
|
# |
6 |
|
# ensure correct versions of python and scons |
7 |
|
|
8 |
|
EnsurePythonVersion(2,3) |
9 |
|
EnsureSConsVersion(0,96) |
10 |
|
|
11 |
|
# |
12 |
|
# retreive command-line arguments if any |
13 |
|
# these are passed through to SConscripts |
14 |
|
|
15 |
|
if ARGUMENTS.get('libinstall',0): |
16 |
|
libinstall = ARGUMENTS.get('libinstall',0) |
17 |
|
else: |
18 |
|
libinstall = Dir('#lib') |
19 |
|
Export(["libinstall"]) |
20 |
|
|
21 |
|
if ARGUMENTS.get('debug',0): |
22 |
|
dodebug = 1 |
23 |
|
else: |
24 |
|
dodebug = 0 |
25 |
|
Export(["dodebug"]) |
26 |
|
|
27 |
|
if ARGUMENTS.get('usegcc',0): |
28 |
|
usegcc = 1 |
29 |
|
else: |
30 |
|
usegcc = 0 |
31 |
|
Export(["usegcc"]) |
32 |
|
|
33 |
|
# |
34 |
|
# set and export esysroot |
35 |
|
|
36 |
esysroot = Dir('#.') |
esysroot = Dir('#.') |
37 |
Export(["esysroot"]) |
Export(["esysroot"]) |
38 |
|
|
39 |
libinstall = Dir('#lib') |
# |
40 |
Export(["libinstall"]) |
# call appropriate SConscripts |
41 |
|
|
42 |
|
target_scripts = ['tools/CppUnitTest/SConstruct', |
43 |
|
'tools/mmio/SConstruct', |
44 |
|
'esysUtils/SConstruct', |
45 |
|
'escript/SConstruct', |
46 |
|
'bruce/SConstruct', |
47 |
|
'paso/SConstruct', |
48 |
|
'finley/SConstruct'] |
49 |
|
|
50 |
SConscript(['tools/CppUnitTest/SConstruct','tools/mmio/SConstruct','esysUtils/SConstruct','escript/SConstruct','paso/SConstruct','finley/SConstruct','bruce/SConstruct'], duplicate=0) |
SConscript(target_scripts, duplicate=0) |