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 = None |
19 |
|
Export(["libinstall"]) |
20 |
|
|
21 |
|
if ARGUMENTS.get('pyinstall',0): |
22 |
|
pyinstall = ARGUMENTS.get('pyinstall',0) |
23 |
|
else: |
24 |
|
pyinstall = None |
25 |
|
Export(["pyinstall"]) |
26 |
|
|
27 |
|
if ARGUMENTS.get('options',0): |
28 |
|
options = ARGUMENTS.get('options',0) |
29 |
|
else: |
30 |
|
options = None |
31 |
|
Export(["options"]) |
32 |
|
|
33 |
|
if ARGUMENTS.get('debug',0): |
34 |
|
dodebug = 1 |
35 |
|
else: |
36 |
|
dodebug = 0 |
37 |
|
Export(["dodebug"]) |
38 |
|
|
39 |
|
if ARGUMENTS.get('usegcc',0): |
40 |
|
usegcc = 1 |
41 |
|
else: |
42 |
|
usegcc = 0 |
43 |
|
Export(["usegcc"]) |
44 |
|
|
45 |
|
# |
46 |
|
# set and export esysroot |
47 |
|
|
48 |
esysroot = Dir('#.') |
esysroot = Dir('#.') |
49 |
Export(["esysroot"]) |
Export(["esysroot"]) |
50 |
|
|
51 |
SConscript(['tools/CppUnitTest/SConstruct','tools/mmio/SConstruct','esysUtils/SConstruct','escript/SConstruct','paso/SConstruct','finley/SConstruct','bruce/SConstruct'], duplicate=0) |
# |
52 |
|
# call appropriate SConscripts |
53 |
|
|
54 |
|
target_scripts = ['tools/CppUnitTest/SConstruct', |
55 |
|
'tools/mmio/SConstruct', |
56 |
|
'esysUtils/SConstruct', |
57 |
|
'escript/SConstruct', |
58 |
|
'bruce/SConstruct', |
59 |
|
'paso/SConstruct', |
60 |
|
'finley/SConstruct', |
61 |
|
'modellib/SConstruct'] |
62 |
|
|
63 |
|
# 'doc/SConstruct'] |
64 |
|
|
65 |
|
SConscript(target_scripts, duplicate=0) |