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

Contents of /trunk/scons/windows_mscv71_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2629 - (show annotations)
Tue Aug 25 06:39:26 2009 UTC (10 years, 2 months ago) by trankine
File MIME type: text/x-python
File size: 2453 byte(s)
Changes to work on Windows with boost 1.39.0. Using command separator &. Note: there are still 2 CheckFunc that fail (but can be bypassed as the rest of the build works). 
1
2 ########################################################
3 #
4 # Copyright (c) 2003-2009 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_39_0')
35 boost_lib_path = os.path.join(boost_path,'stage','lib')
36 boost_libs = ['boost_python-vc71-mt-1_39']
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 # /wd4068 - ignore unknown pragmas.
48 # /EHsc - /EHsc Catch C++ exceptions only, assume C code does not throw.
49 # /GR - enable RTTI.
50 # /MD - link to DLL multithreaded RTL
51 # /ZI - dont put the library name in the .obj file.
52 # /Yd - Put debug info in .obj file.
53 # /Y- - Ignore precompiled header options, we don't want them.
54 # /RTCcsu - Stack frame, use of uninitialised variabe and truncation checks.
55 cc_flags = '/EHsc /GR /wd4068 /MD'
56 cc_optim = '/O2 /Op /W3'
57 cc_debug = '/Od /RTCcsu /ZI /Yd /Y-'
58
59 # MPI version using MPICH2
60 usempi = 'yes'
61 mpi_path = 'C:/Program Files/MPICH2/include'
62 mpi_lib_path = 'C:/Program Files/MPICH2/lib'
63 mpi_libs = ['mpi']
64 mpi_flavour = 'MPICH2'
65
66 # linker flags to use
67 #link_flags = ''
68 #link_flags_debug = '/debug /incremental:no /opt:ref /opt:icf'
69
70 # static library archiver flags to use
71 #ar_flags = 'crus'
72
73 # system specific libraries to link with
74 sys_libs = ["C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib/Ws2_32"]
75
76 tools_names = ['msvc']

  ViewVC Help
Powered by ViewVC 1.1.26