/[escript]/trunk/bruce/test/Bruce/SConstruct
ViewVC logotype

Annotation of /trunk/bruce/test/Bruce/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 193 - (hide annotations)
Mon Nov 21 06:41:30 2005 UTC (16 years, 8 months ago) by jgs
File size: 1872 byte(s)
add draft SConstruct file for Bruce unit_tests

1 jgs 193 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     bruce_test_path = str(esysroot) + '/bruce/test/Bruce'
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     bruce_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 = ['BruceTestCase.cpp',
59     'BruceTest.cpp']
60    
61     target = 'BruceTest.exe'
62    
63     bruce_env = Environment(ENV = os.environ)
64    
65     bruce_env.Replace(CXX = 'icc')
66     bruce_env.Replace(CXXFLAGS = cxx_flags)
67     bruce_env.Replace(CPPPATH = cpp_path)
68     bruce_env.Replace(LIBPATH = lib_path)
69     bruce_env.Replace(LIBS = libs)
70    
71     bruce_test_exe = bruce_env.Program(target, sources)

  ViewVC Help
Powered by ViewVC 1.1.26