/[escript]/trunk/escript/test/DataVariable/SConstruct
ViewVC logotype

Annotation of /trunk/escript/test/DataVariable/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 196 - (hide annotations)
Tue Nov 22 01:48:33 2005 UTC (13 years, 8 months ago) by jgs
File size: 1886 byte(s)
first draft scons construct files for remaining escript unit tests

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

  ViewVC Help
Powered by ViewVC 1.1.26