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

Contents of /trunk/escript/test/DataC/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 196 - (show annotations)
Tue Nov 22 01:48:33 2005 UTC (14 years, 8 months ago) by jgs
File size: 1915 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 datac_test_path = str(esysroot) + '/escript/test/DataC'
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 = [datac_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 = ['DataCTestCase.cpp',
56 'DataCTest.cpp',
57 'compareCCall.c',
58 'CompareFuncs.c']
59
60 target = 'DataCTest.exe'
61
62 datac_env = Environment(ENV = os.environ)
63
64 datac_env.Replace(CXX = 'icc')
65 datac_env.Replace(CC = 'icc')
66 datac_env.Replace(CXXFLAGS = cxx_flags)
67 datac_env.Replace(CCFLAGS = cxx_flags)
68 datac_env.Replace(CPPPATH = cpp_path)
69 datac_env.Replace(LIBPATH = lib_path)
70 datac_env.Replace(LIBS = libs)
71
72 datac_test_exe = datac_env.Program(target, sources)

  ViewVC Help
Powered by ViewVC 1.1.26