/[escript]/branches/RW_WIN32/esysUtils/src/SConscript
ViewVC logotype

Contents of /branches/RW_WIN32/esysUtils/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 218 - (show annotations)
Thu Nov 24 07:42:12 2005 UTC (13 years, 9 months ago) by robwdcock
File size: 1027 byte(s)
All C++/C Unit tests now build (using scons) and pass on win32
1 Import('*')
2
3 lib_name = 'esysUtils'
4
5 utils_env=env.Copy()
6 src_dir = utils_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 headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
12
13
14 include = Dir('esysUtils', esys_inc)
15 utils_env.Install( include, headers )
16
17 if env['PLATFORM'] == "win32":
18 utils_env['PDB'] = lib_name+'.pdb'
19 else:
20 import os
21
22 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'
23
24 cpp_path = ['#../esysUtils/inc',
25 '/raid2/tools/python-2.3.4/include/python2.3',
26 '/raid2/tools/boost/include/boost-1_31']
27
28
29 utils_env = Environment(ENV = os.environ)
30
31 utils_env.Replace(CXX = 'icc')
32 utils_env.Replace(CXXFLAGS = cxx_flags)
33 utils_env.Replace(CPPPATH = cpp_path)
34
35 utils_lib = utils_env.StaticLibrary(lib_name, sources)
36 utils_env.Install(esys_lib, utils_lib)

  ViewVC Help
Powered by ViewVC 1.1.26