1 |
jgs |
214 |
# Scons configuration file for esysUtils |
2 |
jgs |
455 |
|
3 |
|
|
# |
4 |
|
|
# set appropriate defaults for configuration variables |
5 |
gross |
425 |
esysroot=str(Dir('./..').abspath) |
6 |
|
|
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
7 |
jgs |
190 |
|
8 |
jgs |
191 |
Export(["python_path"]) |
9 |
|
|
Export(["boost_path"]) |
10 |
jgs |
223 |
Export(["cxx"]) |
11 |
jgs |
214 |
Export(["cxx_flags"]) |
12 |
jgs |
225 |
Export(["ar_flags"]) |
13 |
jgs |
191 |
|
14 |
jgs |
214 |
# |
15 |
|
|
# print out build configuration for this module |
16 |
jgs |
191 |
|
17 |
jgs |
214 |
print "Build configuration for module: esysUtils" |
18 |
jgs |
223 |
print " cxx: ", cxx |
19 |
gross |
425 |
print " cxx_flags: ", cxx_flags |
20 |
jgs |
191 |
|
21 |
gross |
425 |
# set and export library directory |
22 |
|
|
libdir = Dir(str(esysroot) + '/esysUtils/lib') |
23 |
|
|
Export(["libdir"]) |
24 |
|
|
|
25 |
jgs |
214 |
# |
26 |
|
|
# call the SConscript to do the actual build |
27 |
|
|
|
28 |
jgs |
309 |
SConscript(dirs=['src'], build_dir='obj/src', duplicate=0) |
29 |
|
|
SConscript(dirs=['test/EsysException'], build_dir='obj/test/EsysException', duplicate=0) |