1 |
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 -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 |
bruce_path = str(esysroot) + '/bruce/inc' |
24 |
brucefactory_test_path = str(esysroot) + '/bruce/test/BruceFactory' |
25 |
escript_path = str(esysroot) + '/escript/inc' |
26 |
esysUtils_path = str(esysroot) + '/esysUtils/inc' |
27 |
CppUnitTest_path = str(esysroot) + '/tools/CppUnitTest/inc' |
28 |
|
29 |
esys_lib_path = str(esysroot) + '/lib' |
30 |
esysUtils_lib_path = str(esysroot) + '/esysUtils/lib' |
31 |
CppUnitTest_lib_path = str(esysroot) + '/tools/CppUnitTest/lib' |
32 |
|
33 |
cpp_path = [bruce_path, |
34 |
brucefactory_test_path, |
35 |
escript_path, |
36 |
esysUtils_path, |
37 |
CppUnitTest_path, |
38 |
python_path, |
39 |
boost_path] |
40 |
|
41 |
lib_path = [esys_lib_path, |
42 |
esysUtils_lib_path, |
43 |
CppUnitTest_lib_path, |
44 |
python_lib_path, |
45 |
boost_lib_path] |
46 |
|
47 |
libs = ['brucecpp', |
48 |
'escriptcpp', |
49 |
'esysUtils', |
50 |
'CppUnitTest', |
51 |
'python2.3', |
52 |
'boost_python-intel-d-1_31', |
53 |
'dl', |
54 |
'util', |
55 |
'guide', |
56 |
'irc'] |
57 |
|
58 |
sources = ['BruceFactoryTestCase.cpp', |
59 |
'BruceFactoryTest.cpp'] |
60 |
|
61 |
target = 'BruceFactoryTest.exe' |
62 |
|
63 |
brucefactory_env = Environment(ENV = os.environ) |
64 |
|
65 |
brucefactory_env.Replace(CXX = 'icc') |
66 |
brucefactory_env.Replace(CXXFLAGS = cxx_flags) |
67 |
brucefactory_env.Replace(CPPPATH = cpp_path) |
68 |
brucefactory_env.Replace(LIBPATH = lib_path) |
69 |
brucefactory_env.Replace(LIBS = libs) |
70 |
|
71 |
brucefactory_test_exe = brucefactory_env.Program(target, sources) |