1 |
jgs |
214 |
# Scons configuration file for paso |
2 |
jgs |
455 |
|
3 |
|
|
# |
4 |
|
|
# set appropriate configuration variable defaults |
5 |
|
|
|
6 |
gross |
425 |
esysroot=str(Dir('./..').abspath) |
7 |
|
|
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
8 |
jgs |
214 |
|
9 |
gross |
425 |
Export(["scsl_path","scsl_libs"]) |
10 |
|
|
Export(["mkl_path","mkl_libs"]) |
11 |
|
|
Export(["umfpack_path","umfpack_libs"]) |
12 |
jgs |
191 |
Export(["python_path"]) |
13 |
|
|
Export(["boost_path"]) |
14 |
jgs |
223 |
Export(["cc"]) |
15 |
jgs |
214 |
Export(["cc_flags"]) |
16 |
|
|
Export(["ar_flags"]) |
17 |
jgs |
481 |
Export(["libinstall"]) |
18 |
|
|
Export(["incinstall"]) |
19 |
jgs |
191 |
|
20 |
jgs |
455 |
# set and export library directories |
21 |
|
|
|
22 |
|
|
libdir = Dir(str(esysroot) + '/paso/lib') |
23 |
|
|
Export(["libdir"]) |
24 |
|
|
libdir2 = Dir(str(esysroot) + '/lib') |
25 |
|
|
Export(["libdir2"]) |
26 |
|
|
|
27 |
jgs |
214 |
# |
28 |
jgs |
481 |
# set and export include directories |
29 |
|
|
|
30 |
|
|
incdir = Dir(str(esysroot) + '/paso/inc') |
31 |
|
|
Export(["incdir"]) |
32 |
|
|
incdir2 = Dir(str(esysroot) + '/inc') |
33 |
|
|
Export(["incdir2"]) |
34 |
|
|
if incinstall != None: |
35 |
|
|
Export(["incinstall"]) |
36 |
|
|
|
37 |
|
|
# |
38 |
jgs |
214 |
# print out build configuration for this module |
39 |
jgs |
191 |
|
40 |
jgs |
214 |
print "Build configuration for module: paso" |
41 |
jgs |
223 |
print " cc: ", cc |
42 |
gross |
425 |
print " cc_flags: ", cc_flags |
43 |
jgs |
455 |
|
44 |
jgs |
214 |
# call the SConscript to do the actual build |
45 |
jgs |
199 |
|
46 |
jgs |
187 |
SConscript('src/SConscript', src_dir='src', build_dir='obj', duplicate=0) |