1 |
|
|
2 |
from windows_mscv71_options import * |
######################################################## |
3 |
#from windows_intelc_options import * |
# |
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 = '' |
53 |
|
|
54 |
|
# Additional compiler (optimization) flags for non-debug builds |
55 |
|
# DEFAULT: compiler-dependent |
56 |
|
#cc_optim = '/O2 /Op /W3' |
57 |
|
|
58 |
|
# Additional compiler flags for debug builds |
59 |
|
# DEFAULT: compiler-dependent |
60 |
|
#cc_debug = '/Od /RTCcsu /ZI /DBOUNDS_CHECK' |
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 = '' |
73 |
|
|
74 |
|
# Whether to treat compiler warnings as errors |
75 |
|
# DEFAULT: True |
76 |
|
werror = False |
77 |
|
|
78 |
|
# Whether to build a debug version |
79 |
|
# DEFAULT: False |
80 |
|
#debug = True |
81 |
|
|
82 |
|
# Set to True to print the full compiler/linker command line |
83 |
|
# DEFAULT: False |
84 |
|
verbose = True |
85 |
|
|
86 |
|
# Set to True to add flags that enable OpenMP parallelization |
87 |
|
# DEFAULT: False |
88 |
|
#openmp = True |
89 |
|
|
90 |
|
# Additional compiler flags for OpenMP builds |
91 |
|
# DEFAULT: compiler-dependent |
92 |
|
#omp_flags = '/Qopenmp /Qparallel' |
93 |
|
|
94 |
|
# Additional linker flags for OpenMP builds |
95 |
|
# DEFAULT: compiler-dependent |
96 |
|
#omp_ldflags = '/Qopenmp /Qparallel' |
97 |
|
|
98 |
|
# Flavour of MPI implementation |
99 |
|
# Recognized values: 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI' |
100 |
|
# DEFAULT: 'none' (disable MPI) |
101 |
|
mpi = 'MPICH2' |
102 |
|
|
103 |
|
# Prefix or paths to MPI headers and libraries. See note above about prefixes. |
104 |
|
mpi_prefix = 'C:/Program Files/MPICH2' |
105 |
|
|
106 |
|
# MPI libraries to link against |
107 |
|
mpi_libs = ['mpi'] |
108 |
|
|
109 |
|
dotdot = os.path.realpath('..') |
110 |
|
system_builddeps = os.path.join('c:',os.sep, 'buildlibs') |
111 |
|
|
112 |
|
# Prefix or paths to python headers and libraries. See note above. |
113 |
|
# By default, this is determined using the running python executable. |
114 |
|
#python_prefix = 'C:/Python26' |
115 |
|
|
116 |
|
# Prefix or paths to boost-python headers and libraries. See note above. |
117 |
|
boost_prefix = [os.path.join(system_builddeps, 'boost_1_41_0'), os.path.join(system_builddeps, 'boost_1_41_0','windows_binary','lib')] |
118 |
|
|
119 |
|
# boost-python library/libraries to link against |
120 |
|
boost_libs = ['boost_python-vc71-mt-1_41'] |
121 |
|
|
122 |
|
# Prefix or paths to CppUnit headers and libraries. See note above. |
123 |
|
# C:\buildlibs\cppunit-1.12.1\src\cppunit\Release |
124 |
|
cppunit_prefix = os.path.join(system_builddeps, 'cppunit-1.12.1') |
125 |
|
|
126 |
|
# CppUnit library/libraries to link against |
127 |
|
cppunit_libs = ['cppunit'] |
128 |
|
|
129 |
|
# Whether to use the netCDF library for dump file support |
130 |
|
# DEFAULT: False |
131 |
|
netcdf = True |
132 |
|
|
133 |
|
# Prefix or paths to netCDF headers and libraries. See note above. |
134 |
|
netcdf_prefix = [os.path.join(system_builddeps, 'netcdf', 'src', 'include'), os.path.join(system_builddeps, 'netcdf', 'lib')] |
135 |
|
|
136 |
|
# netCDF library/libraries to link against |
137 |
|
netcdf_libs = ['netcdf_cpp', 'netcdf'] |
138 |
|
|
139 |
|
# Whether to use the parMETIS library (only in conjunction with MPI) |
140 |
|
# DEFAULT: False |
141 |
|
#parmetis = True |
142 |
|
|
143 |
|
# Prefix or paths to parMETIS headers and libraries. See note above. |
144 |
|
#parmetis_prefix = 'C:/parmetis' |
145 |
|
|
146 |
|
# parMETIS library/libraries to link against |
147 |
|
#parmetis_libs = ['parmetis', 'metis'] |
148 |
|
|
149 |
|
# Whether to use the Intel PAPI (Performance API) library |
150 |
|
# DEFAULT: False |
151 |
|
#papi = True |
152 |
|
|
153 |
|
# Prefix or paths to PAPI headers and libraries. See note above. |
154 |
|
#papi_prefix = 'C:/papi' |
155 |
|
|
156 |
|
# PAPI library/libraries to link against |
157 |
|
#papi_libs = ['papi'] |
158 |
|
|
159 |
|
# Whether to use PAPI to instrument solver iterations |
160 |
|
# DEFAULT: False |
161 |
|
#papi_instrument_solver = True |
162 |
|
|
163 |
|
# Whether to use Intel MKL (Math Kernel Library) |
164 |
|
# DEFAULT: False |
165 |
|
#mkl = True |
166 |
|
|
167 |
|
# Prefix or paths to MKL headers and libraries. See note above. |
168 |
|
#mkl_prefix = 'C:/mkl' |
169 |
|
|
170 |
|
# MKL library/libraries to link against |
171 |
|
#mkl_libs = ['mkl_solver', 'mkl_em64t', 'mkl_core', 'guide'] |
172 |
|
|
173 |
|
# Whether to use UMFPACK (requires AMD and BLAS) |
174 |
|
# DEFAULT: False |
175 |
|
#umfpack = True |
176 |
|
|
177 |
|
# Prefix or paths to UMFPACK headers and libraries. See note above. |
178 |
|
#umfpack_prefix = 'C:/umfpack' |
179 |
|
|
180 |
|
# UMFPACK library/libraries to link against |
181 |
|
#umfpack_libs = ['umfpack'] |
182 |
|
|
183 |
|
# Whether to use BoomerAMG (requires MPI) |
184 |
|
# DEFAULT: False |
185 |
|
#boomeramg = True |
186 |
|
|
187 |
|
# Prefix or paths to BoomerAMG headers and libraries. See note above. |
188 |
|
#boomeramg_prefix = 'C:/boomeramg' |
189 |
|
|
190 |
|
# BoomerAMG library/libraries to link against |
191 |
|
#boomeramg_libs = ['HYPRE'] |
192 |
|
|
193 |
|
# Flavour of LAPACK implementation |
194 |
|
# Recognized values: 'none', 'clapack', 'mkl' |
195 |
|
# DEFAULT: 'none' (do not use LAPACK) |
196 |
|
#lapack = 'clapack' |
197 |
|
|
198 |
|
# Prefix or paths to LAPACK headers and libraries. See note above. |
199 |
|
#lapack_prefix = 'C:/lapack' |
200 |
|
|
201 |
|
# LAPACK library/libraries to link against |
202 |
|
#lapack_libs = ['lapack_atlas'] |
203 |
|
|
204 |
|
# Whether to use LLNL's SILO library for Silo output file support in weipa |
205 |
|
# DEFAULT: False |
206 |
|
#silo = True |
207 |
|
|
208 |
|
# Prefix or paths to SILO headers and libraries. See note above. |
209 |
|
#silo_prefix = 'C:/silo' |
210 |
|
|
211 |
|
# SILO library/libraries to link against |
212 |
|
#silo_libs = ['siloh5', 'hdf5'] |
213 |
|
|
214 |
|
# Whether to use LLNL's VisIt simulation interface (only version 2 supported) |
215 |
|
# DEFAULT: False |
216 |
|
#visit = True |
217 |
|
|
218 |
|
# Prefix or paths to VisIt's sim2 headers and libraries. See note above. |
219 |
|
#visit_prefix = 'C:/visit/2.1.0/linux-intel/libsim/V2' |
220 |
|
|
221 |
|
# Sim2 library/libraries to link against |
222 |
|
#visit_libs = ['simV2'] |
223 |
|
|
224 |
|
# Whether to enable the deprecated PyVisi interface (requires the VTK python |
225 |
|
# modules) |
226 |
|
# DEFAULT: False |
227 |
|
#pyvisi = True |
228 |
|
|
229 |
|
# Build dynamic libraries only |
230 |
|
#DEFAULT: False |
231 |
|
#build_shared = True |
232 |
|
|
233 |
|
### ADVANCED OPTIONS ### |
234 |
|
# Do not change the following options unless you know what they do |
235 |
|
|
236 |
|
# Use intel's VSL library for random data |
237 |
|
# DEFAULT: False |
238 |
|
#vsl_random = True |
239 |
|
|
240 |
|
# Extra libraries to link with |
241 |
|
sys_libs = ['C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib/Ws2_32'] |
242 |
|
|
243 |
|
# Additional environmental variables to export to the tools |
244 |
|
#env_export = [] |
245 |
|
|
246 |
|
#tools_names = ['msvc'] |
247 |
|
|
248 |
|
#iknowwhatimdoing = False |
249 |
|
|
250 |
|
#forcelazy = 'leave_alone' |
251 |
|
|
252 |
|
#forcecollres = 'leave_alone' |
253 |
|
|