1 |
jgs |
214 |
# Scons configuration file for finley |
2 |
jgs |
455 |
|
3 |
elspeth |
643 |
# Copyright 2006 by ACcESS MNRF |
4 |
|
|
# |
5 |
|
|
# http://www.access.edu.au |
6 |
|
|
# Primary Business: Queensland, Australia |
7 |
|
|
# Licensed under the Open Software License version 3.0 |
8 |
|
|
# http://www.opensource.org/licenses/osl-3.0.php |
9 |
|
|
# |
10 |
jgs |
455 |
# |
11 |
elspeth |
643 |
# |
12 |
jgs |
455 |
# set appropriate defaults for configuration variables |
13 |
gross |
425 |
esysroot=str(Dir('./..').abspath) |
14 |
|
|
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
15 |
jgs |
214 |
|
16 |
gross |
425 |
solver_libs=mkl_libs+scsl_libs+umfpack_libs |
17 |
|
|
solver_lib_paths=[mkl_lib_path,scsl_lib_path,umfpack_lib_path] |
18 |
jgs |
214 |
|
19 |
jgs |
455 |
Export(["python_path"]) |
20 |
|
|
Export(["boost_path"]) |
21 |
gross |
584 |
Export(["papi_path"]) |
22 |
jgs |
455 |
Export(["cxx"]) |
23 |
|
|
Export(["cc"]) |
24 |
|
|
Export(["cxx_flags"]) |
25 |
|
|
Export(["cc_flags"]) |
26 |
|
|
Export(["boost_lib_path"]) |
27 |
|
|
Export(["boost_lib"]) |
28 |
|
|
Export(["sys_libs"]) |
29 |
|
|
Export(["solver_libs"]) |
30 |
|
|
Export(["solver_lib_paths"]) |
31 |
gross |
584 |
Export(["papi_libs"]) |
32 |
|
|
Export(["papi_lib_path"]) |
33 |
jgs |
457 |
Export(["libinstall"]) |
34 |
jgs |
481 |
Export(["pyinstall"]) |
35 |
|
|
Export(["incinstall"]) |
36 |
jgs |
455 |
|
37 |
jgs |
454 |
# |
38 |
|
|
# set and export library directories |
39 |
|
|
|
40 |
|
|
libdir = Dir(str(esysroot) + '/finley/lib') |
41 |
|
|
Export(["libdir"]) |
42 |
|
|
libdir2 = Dir(str(esysroot) + '/lib') |
43 |
|
|
Export(["libdir2"]) |
44 |
|
|
|
45 |
|
|
# |
46 |
|
|
# set and export python directories |
47 |
|
|
|
48 |
jgs |
268 |
pydir = Dir(str(esysroot) + '/finley/lib/py_src') |
49 |
|
|
Export(["pydir"]) |
50 |
jgs |
288 |
pydir2 = Dir(str(esysroot) + '/esys/finley') |
51 |
|
|
Export(["pydir2"]) |
52 |
jgs |
457 |
if pyinstall != None: |
53 |
|
|
pyinstall = Dir(str(pyinstall) + '/finley') |
54 |
|
|
Export(["pyinstall"]) |
55 |
jgs |
268 |
|
56 |
jgs |
214 |
# |
57 |
jgs |
481 |
# set and export include directories |
58 |
|
|
|
59 |
|
|
incdir = Dir(str(esysroot) + '/finley/inc') |
60 |
|
|
Export(["incdir"]) |
61 |
|
|
incdir2 = Dir(str(esysroot) + '/inc') |
62 |
|
|
Export(["incdir2"]) |
63 |
|
|
if incinstall != None: |
64 |
|
|
Export(["incinstall"]) |
65 |
|
|
|
66 |
|
|
# |
67 |
jgs |
214 |
# print out build configuration for this module |
68 |
|
|
|
69 |
|
|
print "Build configuration for module: finley" |
70 |
jgs |
223 |
print " cc: ", cc |
71 |
gross |
425 |
print " cc_flags: ", cc_flags |
72 |
jgs |
223 |
print " cxx: ", cxx |
73 |
gross |
425 |
print " cxx_flags: ", cxx_flags |
74 |
jgs |
214 |
|
75 |
|
|
# |
76 |
|
|
# call the SConscript to do the actual build |
77 |
|
|
|
78 |
jgs |
471 |
SConscript(dirs=['src'], build_dir='obj', duplicate=0) |
79 |
jgs |
268 |
SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0) |
80 |
jgs |
473 |
SConscript(dirs=['test/MeshAdapter'], build_dir='obj/test/MeshAdapter', duplicate=0) |