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