/[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 200 - (hide annotations)
Tue Nov 22 07:55:09 2005 UTC (14 years, 10 months ago) by robwdcock
File size: 771 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 jgs 179 Import('*')
2    
3 robwdcock 186 # TODO: These two sections can be unified once we know what the linux/irix build looks like
4 jgs 179
5 robwdcock 186 if env['PLATFORM'] == "win32":
6 robwdcock 200 mmio_env=env.Copy()
7 robwdcock 186
8     mmio_lib = mmio_env.StaticLibrary( 'mmio', 'mmio.c')
9     include = Dir('mmio', esys_inc)
10    
11     mmio_env.Install( include, 'mmio.h')
12     mmio_env.Install( esys_lib, mmio_lib)
13     else:
14     import os
15    
16     cc_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'
17    
18     cpp_path = ['#inc']
19    
20     lib = 'mmio'
21     sources = ['mmio.c']
22    
23     mmio_env = Environment(ENV = os.environ)
24    
25     mmio_env.Replace(CC = 'icc')
26     mmio_env.Replace(CCFLAGS = cc_flags)
27     mmio_env.Replace(CPPPATH = cpp_path)
28    
29     mmio_lib = mmio_env.StaticLibrary(lib, sources)
30     mmio_env.Install(libdir, mmio_lib)

  ViewVC Help
Powered by ViewVC 1.1.26