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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 200 - (show annotations)
Tue Nov 22 07:55:09 2005 UTC (13 years, 6 months ago) by robwdcock
File size: 833 byte(s)
PARTIAL WIN32 BUILD SYSTEM AND PORT
+ CppUnitTest build system and library now ported
+ make directory and other no longer necessary directories removed from this branches subversion repository
+ moved a few include files so they are now resident with sources. Build system will Install these to the appropriate location during build.
1 Import('*')
2
3 lib_name = 'CppUnitTest'
4 sources = Split("""TestCase.cpp
5 TestFailure.cpp
6 TestRunner.cpp
7 TestSuite.cpp
8 TestResult.cpp
9 TextTestResult.cpp""")
10
11 cppunit_env=env.Copy()
12 cppunit_env.SConscript(dirs = ['#tools/CppUnitTest/inc/CppUnitTest'], duplicate=0)
13
14 if env['PLATFORM'] <> "win32":
15 import os
16
17 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'
18
19 cpp_path = ['#../CppUnitTest/inc']
20
21 cppunit_env = Environment(ENV = os.environ)
22
23 cppunit_env.Replace(CXX = 'icc')
24 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)

  ViewVC Help
Powered by ViewVC 1.1.26