/[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 209 - (show annotations)
Wed Nov 23 06:32:25 2005 UTC (15 years, 10 months ago) by robwdcock
File size: 795 byte(s)
PARTIAL WIN32 BUILD SYSTEM AND PORT
+ bruce, escript build system and library now ported
+ other no longer necessary directories removed from this branches subversion repository

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":
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