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

Annotation of /branches/domexper/scons/windows_mscv71_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2013 - (hide annotations)
Mon Nov 10 12:16:32 2008 UTC (10 years, 7 months ago) by phornby
Original Path: trunk/scons/windows_mscv71_options.py
File MIME type: text/x-python
File size: 2134 byte(s)
Add the tools_names vars to control the compiler toolset scons uses
on windows platforms. (See cgisrv3_options.py for example of use).
1 ksteube 1810
2     ########################################################
3 ksteube 1312 #
4 ksteube 1810 # Copyright (c) 2003-2008 by University of Queensland
5     # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7 ksteube 1312 #
8 ksteube 1810 # 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 ksteube 1312 #
12 ksteube 1810 ########################################################
13 ksteube 1312
14 ksteube 1810
15 phornby 1628 import sys, os
16 phornby 1232
17 phornby 1241 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 phornby 1628 # 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 phornby 1241 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 phornby 1832 python_libs = ['python' + py_vers]
31 phornby 1017
32     # locations of libraries for boost
33 trankine 1427 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 phornby 1832 boost_libs = ['boost_python-vc71-mt-1_33_1.lib']
37 phornby 1017
38     # locations of netcdf
39 trankine 1633 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 phornby 1017
45 trankine 1427 cc_defines = ['_USE_MATH_DEFINES']
46 phornby 1017 # 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 phornby 1831 cc_flags = '/FD /EHsc /GR /wd4068 '
51     cc_optim = '/O2 /Op /MD /W3'
52 phornby 1832 cc_debug = '/Od /RTC1 /MDd /ZI /Yd /Y-'
53 phornby 1017
54 phornby 1628 # linker flags to use
55     #link_flags = ''
56 phornby 1831 #link_flags_debug = '/debug /incremental:no /opt:ref /opt:icf'
57 phornby 1628
58 phornby 1017 # static library archiver flags to use
59     #ar_flags = 'crus'
60    
61     # system specific libraries to link with
62 phornby 1628 sys_libs = ["C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib/Ws2_32"]
63 jfenwick 2005
64 phornby 2013 tools_names = ['msvc']

  ViewVC Help
Powered by ViewVC 1.1.26