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

Annotation of /branches/RW_WIN32/tools/mmio/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 221 - (hide annotations)
Thu Nov 24 11:23:33 2005 UTC (14 years, 9 months ago) by phornby
File size: 1030 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 jgs 179 Import('*')
2    
3 phornby 221 lib_name = 'mmio'
4    
5     mmio_env=env.Copy()
6     src_dir = mmio_env.Dir('.').srcnode().abspath
7 jgs 179
8 phornby 221 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(lib_name, esys_inc)
15     mmio_env.Install( include, headers )
16    
17 robwdcock 186 if env['PLATFORM'] == "win32":
18 phornby 221 mmio_env['PDB'] = lib_name+'.pdb'
19     elif env['PLATFORM'] == "posix":
20     pass
21 robwdcock 186 else:
22     import os
23    
24     cc_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'
25    
26     cpp_path = ['#inc']
27    
28     lib = 'mmio'
29     sources = ['mmio.c']
30    
31     mmio_env = Environment(ENV = os.environ)
32    
33     mmio_env.Replace(CC = 'icc')
34     mmio_env.Replace(CCFLAGS = cc_flags)
35     mmio_env.Replace(CPPPATH = cpp_path)
36    
37     mmio_lib = mmio_env.StaticLibrary(lib, sources)
38     mmio_env.Install(libdir, mmio_lib)
39 phornby 221
40     mmio_lib = mmio_env.StaticLibrary(lib_name, sources)
41     mmio_env.Install(esys_lib, mmio_lib)

  ViewVC Help
Powered by ViewVC 1.1.26