1 |
# Scons configuration file for finley |
2 |
esysroot=str(Dir('./..').abspath) |
3 |
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
4 |
|
5 |
solver_libs=mkl_libs+scsl_libs+umfpack_libs |
6 |
solver_lib_paths=[mkl_lib_path,scsl_lib_path,umfpack_lib_path] |
7 |
|
8 |
# |
9 |
# set and export library directories |
10 |
|
11 |
libdir = Dir(str(esysroot) + '/finley/lib') |
12 |
Export(["libdir"]) |
13 |
libdir2 = Dir(str(esysroot) + '/lib') |
14 |
Export(["libdir2"]) |
15 |
|
16 |
# |
17 |
# set and export python directories |
18 |
|
19 |
pydir = Dir(str(esysroot) + '/finley/lib/py_src') |
20 |
Export(["pydir"]) |
21 |
pydir2 = Dir(str(esysroot) + '/esys/finley') |
22 |
Export(["pydir2"]) |
23 |
|
24 |
Export(["python_path"]) |
25 |
Export(["boost_path"]) |
26 |
Export(["cxx"]) |
27 |
Export(["cc"]) |
28 |
Export(["cxx_flags"]) |
29 |
Export(["cc_flags"]) |
30 |
Export(["boost_lib_path"]) |
31 |
Export(["boost_lib"]) |
32 |
Export(["sys_libs"]) |
33 |
Export(["solver_libs"]) |
34 |
Export(["solver_lib_paths"]) |
35 |
|
36 |
# |
37 |
# print out build configuration for this module |
38 |
|
39 |
print "Build configuration for module: finley" |
40 |
print " cc: ", cc |
41 |
print " cc_flags: ", cc_flags |
42 |
print " cxx: ", cxx |
43 |
print " cxx_flags: ", cxx_flags |
44 |
|
45 |
# |
46 |
# call the SConscript to do the actual build |
47 |
|
48 |
SConscript(dirs=['src/finley'], build_dir='obj/finley', duplicate=0) |
49 |
SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0) |
50 |
SConscript(dirs=['test/MeshAdapter'], build_dir='obj/test/MeshAdapter', duplicate=0) |