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 = 201 |
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 |
# Prefix or paths to CppUnit headers and libraries. See note above. |
122 |
#cppunit_prefix = 'C:/CppUnit' |
123 |
|
124 |
# CppUnit library/libraries to link against |
125 |
#cppunit_libs = ['cppunit'] |
126 |
|
127 |
# Whether to use the netCDF library for dump file support |
128 |
# DEFAULT: False |
129 |
netcdf = True |
130 |
|
131 |
# Prefix or paths to netCDF headers and libraries. See note above. |
132 |
netcdf_prefix = [os.path.join(dotdot, 'netcdf', 'src', 'include'), os.path.join(dotdot, 'netcdf', 'lib')] |
133 |
|
134 |
# netCDF library/libraries to link against |
135 |
netcdf_libs = ['netcdf_cpp', 'netcdf'] |
136 |
|
137 |
# Whether to use the parMETIS library (only in conjunction with MPI) |
138 |
# DEFAULT: False |
139 |
#parmetis = True |
140 |
|
141 |
# Prefix or paths to parMETIS headers and libraries. See note above. |
142 |
#parmetis_prefix = 'C:/parmetis' |
143 |
|
144 |
# parMETIS library/libraries to link against |
145 |
#parmetis_libs = ['parmetis', 'metis'] |
146 |
|
147 |
# Whether to use the Intel PAPI (Performance API) library |
148 |
# DEFAULT: False |
149 |
#papi = True |
150 |
|
151 |
# Prefix or paths to PAPI headers and libraries. See note above. |
152 |
#papi_prefix = 'C:/papi' |
153 |
|
154 |
# PAPI library/libraries to link against |
155 |
#papi_libs = ['papi'] |
156 |
|
157 |
# Whether to use PAPI to instrument solver iterations |
158 |
# DEFAULT: False |
159 |
#papi_instrument_solver = True |
160 |
|
161 |
# Whether to use Intel MKL (Math Kernel Library) |
162 |
# DEFAULT: False |
163 |
#mkl = True |
164 |
|
165 |
# Prefix or paths to MKL headers and libraries. See note above. |
166 |
#mkl_prefix = 'C:/mkl' |
167 |
|
168 |
# MKL library/libraries to link against |
169 |
#mkl_libs = ['mkl_solver', 'mkl_em64t', 'mkl_core', 'guide'] |
170 |
|
171 |
# Whether to use UMFPACK (requires AMD and BLAS) |
172 |
# DEFAULT: False |
173 |
#umfpack = True |
174 |
|
175 |
# Prefix or paths to UMFPACK headers and libraries. See note above. |
176 |
#umfpack_prefix = 'C:/umfpack' |
177 |
|
178 |
# UMFPACK library/libraries to link against |
179 |
#umfpack_libs = ['umfpack'] |
180 |
|
181 |
# Whether to use BoomerAMG (requires MPI) |
182 |
# DEFAULT: False |
183 |
#boomeramg = True |
184 |
|
185 |
# Prefix or paths to BoomerAMG headers and libraries. See note above. |
186 |
#boomeramg_prefix = 'C:/boomeramg' |
187 |
|
188 |
# BoomerAMG library/libraries to link against |
189 |
#boomeramg_libs = ['HYPRE'] |
190 |
|
191 |
# Flavour of LAPACK implementation |
192 |
# Recognized values: 'none', 'clapack', 'mkl' |
193 |
# DEFAULT: 'none' (do not use LAPACK) |
194 |
#lapack = 'clapack' |
195 |
|
196 |
# Prefix or paths to LAPACK headers and libraries. See note above. |
197 |
#lapack_prefix = 'C:/lapack' |
198 |
|
199 |
# LAPACK library/libraries to link against |
200 |
#lapack_libs = ['lapack_atlas'] |
201 |
|
202 |
# Whether to use LLNL's SILO library for Silo output file support in weipa |
203 |
# DEFAULT: False |
204 |
#silo = True |
205 |
|
206 |
# Prefix or paths to SILO headers and libraries. See note above. |
207 |
#silo_prefix = 'C:/silo' |
208 |
|
209 |
# SILO library/libraries to link against |
210 |
#silo_libs = ['siloh5', 'hdf5'] |
211 |
|
212 |
# Whether to use LLNL's VisIt simulation interface (only version 2 supported) |
213 |
# DEFAULT: False |
214 |
#visit = True |
215 |
|
216 |
# Prefix or paths to VisIt's sim2 headers and libraries. See note above. |
217 |
#visit_prefix = 'C:/visit/2.1.0/linux-intel/libsim/V2' |
218 |
|
219 |
# Sim2 library/libraries to link against |
220 |
#visit_libs = ['simV2'] |
221 |
|
222 |
# Whether to enable the deprecated PyVisi interface (requires the VTK python |
223 |
# modules) |
224 |
# DEFAULT: False |
225 |
#pyvisi = True |
226 |
|
227 |
# Build dynamic libraries only |
228 |
#DEFAULT: False |
229 |
#build_shared = True |
230 |
|
231 |
|
232 |
### ADVANCED OPTIONS ### |
233 |
# Do not change the following options unless you know what they do |
234 |
|
235 |
# Use intel's VSL library for random data |
236 |
# DEFAULT: False |
237 |
#vsl_random = True |
238 |
|
239 |
# Extra libraries to link with |
240 |
#sys_libs = [] |
241 |
|
242 |
# Additional environmental variables to export to the tools |
243 |
#env_export = [] |
244 |
|
245 |
#tools_names = ['msvc'] |
246 |
|
247 |
#iknowwhatimdoing = False |
248 |
|
249 |
#forcelazy = 'leave_alone' |
250 |
|
251 |
#forcecollres = 'leave_alone' |
252 |
|