/[escript]/branches/arrayview_from_1695_trunk/esysUtils/test/SConscript
ViewVC logotype

Annotation of /branches/arrayview_from_1695_trunk/esysUtils/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 197 - (hide annotations)
Tue Nov 22 02:01:35 2005 UTC (13 years, 10 months ago) by jgs
Original Path: trunk/esysUtils/test/EsysException/SConstruct
File size: 1426 byte(s)
first draft of scons construct file for esysUtils unit tests

1 jgs 197 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     ############################################################################
16    
17     esysexception_test_path = str(esysroot) + '/esysUtils/test/EsysException'
18     esysUtils_path = str(esysroot) + '/esysUtils/inc'
19     CppUnitTest_path = str(esysroot) + '/tools/CppUnitTest/inc'
20    
21     esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
22     CppUnitTest_lib_path = str(esysroot) + '/tools/CppUnitTest/lib'
23    
24     cpp_path = [esysexception_test_path,
25     esysUtils_path,
26     CppUnitTest_path]
27    
28     lib_path = [esysUtils_lib_path,
29     CppUnitTest_lib_path]
30    
31     libs = ['esysUtils',
32     'CppUnitTest',
33     'guide',
34     'irc']
35    
36     sources = ['EsysExceptionTestCase.cpp',
37     'EsysExceptionTest.cpp']
38    
39     target = 'EsysExceptionTest.exe'
40    
41     esysexception_env = Environment(ENV = os.environ)
42    
43     esysexception_env.Replace(CXX = 'icc')
44     esysexception_env.Replace(CC = 'icc')
45     esysexception_env.Replace(CXXFLAGS = cxx_flags)
46     esysexception_env.Replace(CCFLAGS = cxx_flags)
47     esysexception_env.Replace(CPPPATH = cpp_path)
48     esysexception_env.Replace(LIBPATH = lib_path)
49     esysexception_env.Replace(LIBS = libs)
50    
51     esysexception_test_exe = esysexception_env.Program(target, sources)

  ViewVC Help
Powered by ViewVC 1.1.26