/[escript]/trunk/finley/test/MeshAdapter/SConstruct
ViewVC logotype

Annotation of /trunk/finley/test/MeshAdapter/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 204 - (hide annotations)
Wed Nov 23 04:43:51 2005 UTC (14 years, 4 months ago) by jgs
File size: 2298 byte(s)
revised scons files to account for new finley source tree structure

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     meshadapter_test_path = str(esysroot) + '/finley/test/MeshAdapter'
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     finley_lib_path = str(esysroot) + '/finley/lib'
33     mmio_lib_path = str(esysroot) + '/tools/mmio/lib'
34     esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
35     CppUnitTest_lib_path = str(esysroot) + '/tools/CppUnitTest/lib'
36    
37     cpp_path = [meshadapter_test_path,
38     escript_path,
39     finley_path,
40     paso_path,
41     mmio_path,
42     esysUtils_path,
43     CppUnitTest_path,
44     python_path,
45     boost_path]
46    
47     lib_path = [esys_lib_path,
48     finley_lib_path,
49     mmio_lib_path,
50     esysUtils_lib_path,
51     CppUnitTest_lib_path,
52     python_lib_path,
53     boost_lib_path]
54    
55     libs = ['escriptcpp',
56     'esysUtils',
57     'finleyC',
58     'paso',
59     'mmio',
60     'CppUnitTest',
61     'python2.3',
62     'boost_python-intel-d-1_31',
63     'scs_mp',
64     'dl',
65     'util',
66     'guide',
67     'irc']
68    
69     sources = ['MeshAdapterTestCase.cpp',
70     'MeshAdapterTest.cpp']
71    
72     target = 'MeshAdapterTest.exe'
73    
74     meshadapter_env = Environment(ENV = os.environ)
75    
76     meshadapter_env.Replace(CXX = 'icc')
77     meshadapter_env.Replace(CXXFLAGS = cxx_flags)
78     meshadapter_env.Replace(CPPPATH = cpp_path)
79     meshadapter_env.Replace(LIBPATH = lib_path)
80     meshadapter_env.Replace(LIBS = libs)
81    
82     meshadapter_test_exe = meshadapter_env.Program(target, sources)

  ViewVC Help
Powered by ViewVC 1.1.26