/[escript]/branches/domexper/scons/windows_mscv90_options.py
ViewVC logotype

Contents of /branches/domexper/scons/windows_mscv90_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3079 - (show annotations)
Tue Aug 3 04:04:51 2010 UTC (8 years, 9 months ago) by jfenwick
File MIME type: text/x-python
File size: 3244 byte(s)
Some experiments on finley

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2010 by University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au/esscc
7 #
8 # Primary Business: Queensland, Australia
9 # Licensed under the Open Software License version 3.0
10 # http://www.opensource.org/licenses/osl-3.0.php
11 #
12 ########################################################
13
14
15 import sys, os
16
17 source_root = os.path.realpath('.')
18
19 pyinstall = os.path.join(source_root,'esys')
20 incinstall = os.path.join(source_root,'include')
21 libinstall = os.path.join(source_root,'lib')
22 exinstall = os.path.join(source_root,'examples')
23
24 # locations of files for python
25 py_vers = '%s%s'%(sys.version_info[0],sys.version_info[1])
26 python_root = 'C:/python' + py_vers
27 python_cmd = os.path.join(python_root,'python')
28 python_path = os.path.join(python_root,'include')
29 python_lib_path = os.path.join(python_root,'libs')
30 python_libs = ['python' + py_vers]
31
32 # locations of libraries for boost
33 dotdot = os.path.realpath('..')
34 boost_path = os.path.join(dotdot,'boost_1_39_0')
35 boost_lib_path = os.path.join(boost_path,'windows_binary','lib')
36 boost_libs = ['boost_python-vc90-mt-1_39']
37
38 # locations of netcdf
39 useNetCDF = "yes"
40 netCDF_root = os.path.join(dotdot,"netcdf")
41 netCDF_path = os.path.join(netCDF_root,"src","include")
42 netCDF_lib_path = os.path.join(netCDF_root,'lib')
43 netCDF_libs = ["netcdf", "netcdf_cpp" ]
44
45 cc_defines = ['_USE_MATH_DEFINES']
46 # c flags to use
47 # /wd4068 - ignore unknown pragmas.
48 # /EHsc - /EHsc Catch C++ exceptions only, assume C code does not throw.
49 # /GR - enable RTTI.
50 # /MD - link to DLL multithreaded RTL
51 # /ZI - dont put the library name in the .obj file.
52 # /Yd - Put debug info in .obj file.
53 # /Y- - Ignore precompiled header options, we don't want them.
54 # /RTCcsu - Stack frame, use of uninitialised variabe and truncation checks.
55 cc_flags = '/EHsc /GR /wd4068 /MD'
56 #cc_optim = '/O2 /Op /W3'
57 cc_optim = '/O2 /W3'
58 cc_debug = '/Od /RTCcsu /ZI /Yd /Y-'
59
60 # MPI version using MSMPI
61 usempi = 'yes'
62 mpi_path = 'C:/Program Files/Microsoft HPC Pack 2008 SDK/include'
63 mpi_lib_path = 'C:/Program Files/Microsoft HPC Pack 2008 SDK/lib/i386'
64 mpi_libs = ['msmpi']
65 mpi_flavour = 'MPICH2'
66
67 # linker flags to use
68 #link_flags = ''
69 #link_flags_debug = '/debug /incremental:no /opt:ref /opt:icf'
70 # Extra flags to enable compiling on VS 9.0 on the HPC platform
71 ld_extra = '/LIBPATH:"C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/lib" \
72 /LIBPATH:"C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/redist/x86/Microsoft.VC90.CRT" \
73 /LIBPATH:"C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib" \
74 /LIBPATH:"C:/Windows/winsxs/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91" \
75 /LIBPATH:"C:/Program Files (x86)/Microsoft Visual Studio .NET 2003/SDK/v1.1/Lib"'
76
77 # static library archiver flags to use
78 #ar_flags = 'crus'
79
80 # system specific libraries to link with - this is only used after compilation of the
81 # sources. Don't rely on it linking the correct libs for cleaning, testing etc (see ld_extra)
82 #sys_libs = ["C:/Windows/winsxs/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91/msvcp90"]
83 sys_libs = []
84 tools_names = ['msvc']

  ViewVC Help
Powered by ViewVC 1.1.26