1 |
# Scons configuration file for paso |
2 |
|
3 |
# |
4 |
# set appropriate configuration variable defaults |
5 |
|
6 |
esysroot=str(Dir('./..').abspath) |
7 |
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
8 |
|
9 |
Export(["scsl_path","scsl_libs"]) |
10 |
Export(["mkl_path","mkl_libs"]) |
11 |
Export(["umfpack_path","umfpack_libs"]) |
12 |
Export(["python_path"]) |
13 |
Export(["boost_path"]) |
14 |
Export(["cc"]) |
15 |
Export(["cc_flags"]) |
16 |
Export(["ar_flags"]) |
17 |
|
18 |
# set and export library directories |
19 |
|
20 |
libdir = Dir(str(esysroot) + '/paso/lib') |
21 |
Export(["libdir"]) |
22 |
libdir2 = Dir(str(esysroot) + '/lib') |
23 |
Export(["libdir2"]) |
24 |
|
25 |
# |
26 |
# print out build configuration for this module |
27 |
|
28 |
print "Build configuration for module: paso" |
29 |
print " cc: ", cc |
30 |
print " cc_flags: ", cc_flags |
31 |
|
32 |
# call the SConscript to do the actual build |
33 |
|
34 |
SConscript('src/SConscript', src_dir='src', build_dir='obj', duplicate=0) |