/[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 2629 - (hide annotations)
Tue Aug 25 06:39:26 2009 UTC (9 years, 10 months ago) by trankine
Original Path: trunk/scons/windows_mscv71_options.py
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 ksteube 1810
2     ########################################################
3 ksteube 1312 #
4 jfenwick 2548 # Copyright (c) 2003-2009 by University of Queensland
5 ksteube 1810 # 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 trankine 2629 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 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 phornby 2042 # /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 phornby 1017
59 gross 2414 # 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 phornby 1628 # linker flags to use
67     #link_flags = ''
68 phornby 1831 #link_flags_debug = '/debug /incremental:no /opt:ref /opt:icf'
69 phornby 1628
70 phornby 1017 # static library archiver flags to use
71     #ar_flags = 'crus'
72    
73     # system specific libraries to link with
74 phornby 1628 sys_libs = ["C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib/Ws2_32"]
75 jfenwick 2005
76 phornby 2013 tools_names = ['msvc']

  ViewVC Help
Powered by ViewVC 1.1.26