1 |
jgs |
204 |
esysroot = None |
2 |
|
|
|
3 |
|
|
Import('*') |
4 |
|
|
|
5 |
|
|
import os |
6 |
|
|
import string |
7 |
|
|
|
8 |
|
|
if esysroot == None: |
9 |
|
|
esysroot = Dir('#../../..') |
10 |
|
|
|
11 |
|
|
##### these will enventually be loaded from an external config file ######## |
12 |
|
|
|
13 |
|
|
cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -c -fpic -w1' |
14 |
|
|
|
15 |
|
|
python_path = '/raid2/tools/python-2.3.4/include/python2.3' |
16 |
|
|
boost_path = '/raid2/tools/boost/include/boost-1_31' |
17 |
|
|
|
18 |
|
|
python_lib_path = '/raid2/tools/python-2.3.4/lib' |
19 |
|
|
boost_lib_path = '/raid2/tools/boost/lib' |
20 |
|
|
|
21 |
|
|
############################################################################ |
22 |
|
|
|
23 |
|
|
systemmatrixadapter_test_path = str(esysroot) + '/finley/test/SystemMatrixAdapter' |
24 |
|
|
escript_path = str(esysroot) + '/escript/inc' |
25 |
|
|
finley_path = str(esysroot) + '/finley/inc' |
26 |
|
|
paso_path = str(esysroot) + '/paso/inc' |
27 |
|
|
mmio_path = str(esysroot) + '/tools/mmio/inc' |
28 |
|
|
esysUtils_path = str(esysroot) + '/esysUtils/inc' |
29 |
|
|
CppUnitTest_path = str(esysroot) + '/tools/CppUnitTest/inc' |
30 |
|
|
|
31 |
|
|
esys_lib_path = str(esysroot) + '/lib' |
32 |
|
|
mmio_lib_path = str(esysroot) + '/tools/mmio/lib' |
33 |
|
|
esysUtils_lib_path = str(esysroot) + '/esysUtils/lib' |
34 |
|
|
CppUnitTest_lib_path = str(esysroot) + '/tools/CppUnitTest/lib' |
35 |
|
|
|
36 |
|
|
cpp_path = [systemmatrixadapter_test_path, |
37 |
|
|
escript_path, |
38 |
|
|
finley_path, |
39 |
|
|
paso_path, |
40 |
|
|
mmio_path, |
41 |
|
|
esysUtils_path, |
42 |
|
|
CppUnitTest_path, |
43 |
|
|
python_path, |
44 |
|
|
boost_path] |
45 |
|
|
|
46 |
|
|
lib_path = [esys_lib_path, |
47 |
|
|
mmio_lib_path, |
48 |
|
|
esysUtils_lib_path, |
49 |
|
|
CppUnitTest_lib_path, |
50 |
|
|
python_lib_path, |
51 |
|
|
boost_lib_path] |
52 |
|
|
|
53 |
|
|
libs = ['escriptcpp', |
54 |
|
|
'mmio', |
55 |
|
|
'esysUtils', |
56 |
|
|
'CppUnitTest', |
57 |
|
|
'python2.3', |
58 |
|
|
'boost_python-intel-d-1_31', |
59 |
|
|
'dl', |
60 |
|
|
'util', |
61 |
|
|
'guide', |
62 |
|
|
'irc'] |
63 |
|
|
|
64 |
|
|
sources = ['SystemMatrixAdapterTestCase.cpp', |
65 |
|
|
'SystemMatrixAdapterTest.cpp'] |
66 |
|
|
|
67 |
|
|
target = 'SystemMatrixAdapterTest.exe' |
68 |
|
|
|
69 |
|
|
systemmatrixadapter_env = Environment(ENV = os.environ) |
70 |
|
|
|
71 |
|
|
systemmatrixadapter_env.Replace(CXX = 'icc') |
72 |
|
|
systemmatrixadapter_env.Replace(CXXFLAGS = cxx_flags) |
73 |
|
|
systemmatrixadapter_env.Replace(CPPPATH = cpp_path) |
74 |
|
|
systemmatrixadapter_env.Replace(LIBPATH = lib_path) |
75 |
|
|
systemmatrixadapter_env.Replace(LIBS = libs) |
76 |
|
|
|
77 |
|
|
systemmatrixadapter_test_exe = systemmatrixadapter_env.Program(target, sources) |