/[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 221 - (show annotations)
Thu Nov 24 11:23:33 2005 UTC (14 years, 10 months ago) by phornby
File size: 829 byte(s)
Builds on Linux. Changes to path names in top level
SConstruct will break the windows build. I've done my best
to not change anything else that would break windows, but
something might have slipped past.

Please check the finley_UnitTests.cpp, bruce_UnitTests.cpp and
escript_UnitTest.cpp (look at the TODO).


1 Import('*')
2
3 lib_name = 'CppUnitTest'
4 cppunit_env=env.Copy()
5
6 src_dir = cppunit_env.Dir('.').srcnode().abspath
7
8 import os
9 filenames = os.listdir(src_dir)
10 sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
11
12 cppunit_env.SConscript(dirs = ['#tools/CppUnitTest/inc/CppUnitTest'], duplicate=0)
13
14 if env['PLATFORM'] <> "win32" and env['PLATFORM'] <> "posix" :
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