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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 200 - (show annotations)
Tue Nov 22 07:55:09 2005 UTC (13 years, 8 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 Import('*')
2
3 # TODO: These two sections can be unified once we know what the linux/irix build looks like
4
5 if env['PLATFORM'] == "win32":
6 mmio_env=env.Copy()
7
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