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