/[escript]/trunk/scons/windows_msvc90_options.py
ViewVC logotype

Contents of /trunk/scons/windows_msvc90_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3349 - (show annotations)
Mon Nov 15 05:09:56 2010 UTC (8 years, 8 months ago) by caltinay
File MIME type: text/x-python
File size: 7136 byte(s)
escript now supports out-of-tree builds.
All build and test files are now created under a user-definable build_dir
directory.
This also fixes issue 291.
Removed most svn:ignore props since they are no longer required.

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 import os
15
16 # PREFIXES:
17 # There are two ways to specify where to find dependent headers and libraries
18 # (via the <dependency>_prefix):
19 # 1) If your installation follows the general scheme where headers are located
20 # in <prefix>/include[32,64], and libraries in <prefix>/lib[32,64] then
21 # it is sufficient to specify this prefix, e.g. boost_prefix='C:/python'
22 # 2) Otherwise provide a list with two elements, where the first one is the
23 # include path, and the second the library path, e.g.
24 # boost_prefix=['C:/boost/include/boost1_44', 'C:/boost/lib']
25 # All <dependency>_prefix settings default to '/usr' so have to be set
26 # manually on Windows.
27
28 # The options file version. SCons will refuse to build if there have been
29 # changes to the set of variables and your file has not been updated.
30 # This setting is mandatory.
31 escript_opts_version = 200
32
33 # Installation prefix. Files will be installed in subdirectories underneath.
34 # DEFAULT: '.' (current directory)
35 #prefix = 'C:/escript'
36
37 # Top-level directory for intermediate build and test files.
38 # DEFAULT: 'build'
39 #build_dir = 'build'
40
41 # C compiler command name or full path.
42 # DEFAULT: auto-detected
43 #cc = 'cl'
44
45 # C++ compiler command name or full path.
46 # DEFAULT: auto-detected
47 #cxx = 'cl'
48
49 # Flags to use with both C and C++ compilers. Do not set unless you know
50 # what you are doing - use cc_extra to specify additional flags!
51 # DEFAULT: compiler-dependent
52 cc_flags = '/EHsc /GR /wd4068 /MD'
53
54 # Additional compiler (optimization) flags for non-debug builds
55 # DEFAULT: compiler-dependent
56 cc_optim = '/O2 /W3'
57
58 # Additional compiler flags for debug builds
59 # DEFAULT: compiler-dependent
60 cc_debug = '/Od /RTCcsu /ZI /Yd /Y-'
61
62 # Additional flags to add to the C compiler only
63 # DEFAULT: '' (empty)
64 #cc_extra = ''
65
66 # Additional flags to add to the C++ compiler only
67 # DEFAULT: '' (empty)
68 #cxx_extra = ''
69
70 # Additional flags to add to the linker
71 # DEFAULT: '' (empty)
72 ld_extra = '/LIBPATH:"C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/lib" \
73 /LIBPATH:"C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/redist/x86/Microsoft.VC90.CRT" \
74 /LIBPATH:"C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib" \
75 /LIBPATH:"C:/Windows/winsxs/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91" \
76 /LIBPATH:"C:/Program Files (x86)/Microsoft Visual Studio .NET 2003/SDK/v1.1/Lib"'
77
78 # Whether to treat compiler warnings as errors
79 # DEFAULT: True
80 werror = False
81
82 # Whether to build a debug version
83 # DEFAULT: False
84 #debug = True
85
86 # Set to True to print the full compiler/linker command line
87 # DEFAULT: False
88 verbose = True
89
90 # Set to True to add flags that enable OpenMP parallelization
91 # DEFAULT: False
92 #openmp = True
93
94 # Additional compiler flags for OpenMP builds
95 # DEFAULT: compiler-dependent
96 #omp_flags = '/Qopenmp /Qparallel'
97
98 # Additional linker flags for OpenMP builds
99 # DEFAULT: compiler-dependent
100 #omp_ldflags = '/Qopenmp /Qparallel'
101
102 # Flavour of MPI implementation
103 # Recognized values: 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI'
104 # DEFAULT: 'none' (disable MPI)
105 mpi = 'MPICH2'
106
107 # Prefix or paths to MPI headers and libraries. See note above about prefixes.
108 mpi_prefix = ['C:/Program Files/Microsoft HPC Pack 2008 SDK/include', 'C:/Program Files/Microsoft HPC Pack 2008 SDK/lib/i386']
109
110 # MPI libraries to link against
111 mpi_libs = ['msmpi']
112
113 dotdot = os.path.realpath('..')
114
115 # Prefix or paths to boost-python headers and libraries. See note above.
116 boost_prefix = [os.path.join(dotdot, 'boost_1_39_0'), os.path.join(dotdot, 'boost_1_39_0','windows_binary','lib')]
117
118 # boost-python library/libraries to link against
119 boost_libs = ['boost_python-vc90-mt-1_39']
120
121 # Whether to use the netCDF library for dump file support
122 # DEFAULT: False
123 netcdf = True
124
125 # Prefix or paths to netCDF headers and libraries. See note above.
126 netcdf_prefix = [os.path.join(dotdot, 'netcdf', 'src', 'include'), os.path.join(dotdot, 'netcdf', 'lib')]
127
128 # netCDF library/libraries to link against
129 netcdf_libs = ['netcdf_cpp', 'netcdf']
130
131 # Whether to use the parMETIS library (only in conjunction with MPI)
132 # DEFAULT: False
133 #parmetis = True
134
135 # Prefix or paths to parMETIS headers and libraries. See note above.
136 #parmetis_prefix = 'C:/parmetis'
137
138 # parMETIS library/libraries to link against
139 #parmetis_libs = ['parmetis', 'metis']
140
141 # Whether to use the Intel PAPI (Performance API) library
142 # DEFAULT: False
143 #papi = True
144
145 # Prefix or paths to PAPI headers and libraries. See note above.
146 #papi_prefix = 'C:/papi'
147
148 # PAPI library/libraries to link against
149 #papi_libs = ['papi']
150
151 # Whether to use PAPI to instrument solver iterations
152 # DEFAULT: False
153 #papi_instrument_solver = True
154
155 # Whether to use Intel MKL (Math Kernel Library)
156 # DEFAULT: False
157 #mkl = True
158
159 # Prefix or paths to MKL headers and libraries. See note above.
160 #mkl_prefix = 'C:/mkl'
161
162 # MKL library/libraries to link against
163 #mkl_libs = ['mkl_solver', 'mkl_em64t', 'mkl_core', 'guide']
164
165 # Whether to use UMFPACK (requires AMD and BLAS)
166 # DEFAULT: False
167 #umfpack = True
168
169 # Prefix or paths to UMFPACK headers and libraries. See note above.
170 #umfpack_prefix = 'C:/umfpack'
171
172 # UMFPACK library/libraries to link against
173 #umfpack_libs = ['umfpack']
174
175 # Flavour of LAPACK implementation
176 # Recognized values: 'none', 'clapack', 'mkl'
177 # DEFAULT: 'none' (do not use LAPACK)
178 #lapack = 'clapack'
179
180 # Prefix or paths to LAPACK headers and libraries. See note above.
181 #lapack_prefix = 'C:/lapack'
182
183 # LAPACK library/libraries to link against
184 #lapack_libs = ['lapack_atlas']
185
186 # Whether to use LLNL's SILO library for Silo output file support in weipa
187 # DEFAULT: False
188 #silo = True
189
190 # Prefix or paths to SILO headers and libraries. See note above.
191 #silo_prefix = 'C:/silo'
192
193 # SILO library/libraries to link against
194 #silo_libs = ['siloh5', 'hdf5']
195
196 # Whether to use LLNL's VisIt simulation interface (only version 2 supported)
197 # DEFAULT: False
198 #visit = True
199
200 # Prefix or paths to VisIt's sim2 headers and libraries. See note above.
201 #visit_prefix = 'C:/visit/2.1.0/linux-intel/libsim/V2'
202
203 # Sim2 library/libraries to link against
204 #visit_libs = ['simV2']
205
206 # Whether to enable the deprecated PyVisi interface (requires the VTK python
207 # modules)
208 # DEFAULT: False
209 #pyvisi = True
210
211
212 ### ADVANCED OPTIONS ###
213 # Do not change the following options unless you know what they do
214
215 # Extra libraries to link with
216 sys_libs = ['C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib/Ws2_32']
217
218 # Additional environmental variables to export to the tools
219 #env_export = []
220
221 # Build a shared esysUtils library
222 #share_esysutils = True
223
224 # Build a shared paso library
225 #share_paso = True
226
227 #tools_names = ['msvc']
228
229 #iknowwhatimdoing = False
230
231 #forcelazy = 'leave_alone'
232
233 #forcecollres = 'leave_alone'
234

  ViewVC Help
Powered by ViewVC 1.1.26