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(["papi_path","papi_libs"]) |
13 |
Export(["python_path"]) |
14 |
Export(["boost_path"]) |
15 |
Export(["papi_path"]) |
16 |
Export(["cc"]) |
17 |
Export(["cc_flags"]) |
18 |
Export(["ar_flags"]) |
19 |
Export(["libinstall"]) |
20 |
Export(["incinstall"]) |
21 |
|
22 |
# set and export library directories |
23 |
|
24 |
libdir = Dir(str(esysroot) + '/paso/lib') |
25 |
Export(["libdir"]) |
26 |
libdir2 = Dir(str(esysroot) + '/lib') |
27 |
Export(["libdir2"]) |
28 |
|
29 |
# |
30 |
# set and export include directories |
31 |
|
32 |
incdir = Dir(str(esysroot) + '/paso/inc') |
33 |
Export(["incdir"]) |
34 |
incdir2 = Dir(str(esysroot) + '/inc') |
35 |
Export(["incdir2"]) |
36 |
if incinstall != None: |
37 |
Export(["incinstall"]) |
38 |
|
39 |
# |
40 |
# print out build configuration for this module |
41 |
|
42 |
print "Build configuration for module: paso" |
43 |
print " cc: ", cc |
44 |
print " cc_flags: ", cc_flags |
45 |
|
46 |
# call the SConscript to do the actual build |
47 |
|
48 |
SConscript('src/SConscript', src_dir='src', build_dir='obj', duplicate=0) |