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

Contents of /trunk/escript/test/DataConstant/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


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

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 dataconstant_test_path = str(esysroot) + '/escript/test/DataConstant'
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 = [dataconstant_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 = ['DataConstantTestCase.cpp',
56 'DataConstantTest.cpp']
57
58 target = 'DataConstantTest.exe'
59
60 dataconstant_env = Environment(ENV = os.environ)
61
62 dataconstant_env.Replace(CXX = 'icc')
63 dataconstant_env.Replace(CXXFLAGS = cxx_flags)
64 dataconstant_env.Replace(CPPPATH = cpp_path)
65 dataconstant_env.Replace(LIBPATH = lib_path)
66 dataconstant_env.Replace(LIBS = libs)
67
68 dataconstant_test_exe = dataconstant_env.Program(target, sources)

  ViewVC Help
Powered by ViewVC 1.1.26