/[escript]/branches/schroedinger_upto1946/scons/windows_mscv71_options.py
ViewVC logotype

Contents of /branches/schroedinger_upto1946/scons/windows_mscv71_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2002 - (show annotations)
Sat Nov 8 11:37:25 2008 UTC (12 years, 11 months ago) by phornby
File MIME type: text/x-python
File size: 2135 byte(s)
One step closer to getting openmp going on windows.
All compiles & links, and the run_tests starts OK.

However, it stops after the first set of tests, and complains that libguide.lib is being initialised
when it is already initialised, and this will cause performance degradation.

It says I can set an environment variable to override the error generation, but advises the correct action
is to manage libguide correctly. This may be relevant to the altix?
1
2 ########################################################
3 #
4 # Copyright (c) 2003-2008 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.33')
35 boost_lib_path = os.path.join(boost_path,'windows_binary','lib')
36 boost_libs = ['boost_python-vc71-mt-1_33_1.lib']
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 # 1563 - taking adress of a temporary
48 # 811 - exception specification for implicitly declared virtual function (destructor usually) incompatible with that of override
49 # 161 - openmp pargmas are unknown when not compiling with openmp
50 cc_flags = '/FD /EHsc /GR /wd4068 '
51 cc_optim = '/O2 /Op /MD /W3'
52 cc_debug = '/Od /RTC1 /MDd /ZI /Yd /Y-'
53
54 # linker flags to use
55 #link_flags = ''
56 #link_flags_debug = '/debug /incremental:no /opt:ref /opt:icf'
57
58 # static library archiver flags to use
59 #ar_flags = 'crus'
60
61 # system specific libraries to link with
62 sys_libs = ["C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib/Ws2_32"]
63
64 win_tools_name = 'msvc'

  ViewVC Help
Powered by ViewVC 1.1.26