/[escript]/trunk/tools/CppUnitTest/src/SConscript
ViewVC logotype

Contents of /trunk/tools/CppUnitTest/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 190 - (show annotations)
Mon Nov 21 03:27:42 2005 UTC (15 years ago) by jgs
File size: 668 byte(s)
pass in value for esysroot and use this to determine include file locations
1 Import('*')
2
3 import os
4 import string
5
6 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'
7
8 CppUnitTest_path = str(esysroot) + '/tools/CppUnitTest/inc'
9
10 cpp_path = [CppUnitTest_path]
11
12 lib = 'CppUnitTest'
13 sources = ['TestCase.cpp',
14 'TestFailure.cpp',
15 'TestRunner.cpp',
16 'TestSuite.cpp',
17 'TestResult.cpp',
18 'TextTestResult.cpp']
19
20 cppunit_env = Environment(ENV = os.environ)
21
22 cppunit_env.Replace(CXX = 'icc')
23 cppunit_env.Replace(CXXFLAGS = cxx_flags)
24 cppunit_env.Replace(CPPPATH = cpp_path)
25
26 cppunit_lib = cppunit_env.StaticLibrary(lib, sources)
27 cppunit_env.Install(libdir, cppunit_lib)

  ViewVC Help
Powered by ViewVC 1.1.26