/[escript]/branches/RW_WIN32/tools/CppUnitTest/src/SConscript
ViewVC logotype

Diff of /branches/RW_WIN32/tools/CppUnitTest/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 199 by robwdcock, Sun Nov 20 05:43:12 2005 UTC revision 200 by robwdcock, Tue Nov 22 07:55:09 2005 UTC
# Line 1  Line 1 
1  Import('*')  Import('*')
2    
3  import os  lib_name = 'CppUnitTest'
4    sources = Split("""TestCase.cpp
5  cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'                     TestFailure.cpp
6                       TestRunner.cpp
7  cpp_path = ['#../CppUnitTest/inc']                     TestSuite.cpp
8                       TestResult.cpp
9  lib = 'CppUnitTest'                     TextTestResult.cpp""")
10  sources = ['TestCase.cpp',  
11             'TestFailure.cpp',  cppunit_env=env.Copy()
12             'TestRunner.cpp',  cppunit_env.SConscript(dirs = ['#tools/CppUnitTest/inc/CppUnitTest'], duplicate=0)
13             'TestSuite.cpp',  
14             'TestResult.cpp',  if env['PLATFORM'] <> "win32":
15             'TextTestResult.cpp']     import os
16      
17  cppunit_env = Environment(ENV = os.environ)     cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'
18      
19  cppunit_env.Replace(CXX = 'icc')     cpp_path = ['#../CppUnitTest/inc']
20  cppunit_env.Replace(CXXFLAGS = cxx_flags)    
21  cppunit_env.Replace(CPPPATH = cpp_path)     cppunit_env = Environment(ENV = os.environ)
22      
23  cppunit_lib = cppunit_env.StaticLibrary(lib, sources)     cppunit_env.Replace(CXX = 'icc')
24  cppunit_env.Install(libdir, cppunit_lib)     cppunit_env.Replace(CXXFLAGS = cxx_flags)
25       cppunit_env.Replace(CPPPATH = cpp_path)
26       esys_lib = libdir
27      
28    cppunit_lib = cppunit_env.StaticLibrary(lib_name, sources)
29    cppunit_env.Install( esys_lib, cppunit_lib)

Legend:
Removed from v.199  
changed lines
  Added in v.200

  ViewVC Help
Powered by ViewVC 1.1.26