1 |
ksteube |
1312 |
# |
2 |
|
|
# $Id$ |
3 |
|
|
# |
4 |
|
|
####################################################### |
5 |
|
|
# |
6 |
|
|
# Copyright 2003-2007 by ACceSS MNRF |
7 |
|
|
# Copyright 2007 by University of Queensland |
8 |
|
|
# |
9 |
|
|
# http://esscc.uq.edu.au |
10 |
|
|
# Primary Business: Queensland, Australia |
11 |
|
|
# Licensed under the Open Software License version 3.0 |
12 |
|
|
# http://www.opensource.org/licenses/osl-3.0.php |
13 |
|
|
# |
14 |
|
|
####################################################### |
15 |
|
|
# |
16 |
|
|
|
17 |
phornby |
1544 |
|
18 |
phornby |
1232 |
import os |
19 |
|
|
|
20 |
phornby |
1241 |
source_root = os.path.realpath('.') |
21 |
|
|
|
22 |
|
|
pyinstall = os.path.join(source_root,'esys') |
23 |
|
|
incinstall = os.path.join(source_root,'include') |
24 |
|
|
libinstall = os.path.join(source_root,'lib') |
25 |
|
|
exinstall = os.path.join(source_root,'examples') |
26 |
|
|
|
27 |
phornby |
1017 |
# locations of include files for python |
28 |
phornby |
1540 |
python_root = 'C:/python24' |
29 |
phornby |
1241 |
python_cmd = os.path.join(python_root,'python') |
30 |
|
|
python_path = os.path.join(python_root,'include') |
31 |
|
|
python_lib_path = os.path.join(python_root,'libs') |
32 |
phornby |
1540 |
python_lib = 'python24' |
33 |
phornby |
1017 |
|
34 |
|
|
# locations of libraries for boost |
35 |
trankine |
1427 |
dotdot = os.path.realpath('..') |
36 |
|
|
boost_path = os.path.join(dotdot,'boost-1.33') |
37 |
|
|
boost_lib_path = os.path.join(boost_path,'windows_binary','lib') |
38 |
|
|
boost_lib = 'boost_python-vc71-mt-s-1_33_1.lib' |
39 |
phornby |
1017 |
|
40 |
|
|
# locations of netcdf |
41 |
trankine |
1427 |
useNetCDF = "no" |
42 |
|
|
netCDF_path = os.path.realpath(".") |
43 |
|
|
netCDF_lib_path = os.path.realpath(".") |
44 |
|
|
netCDF_libs = [ ] |
45 |
phornby |
1017 |
|
46 |
trankine |
1427 |
cc_defines = ['_USE_MATH_DEFINES'] |
47 |
phornby |
1017 |
# c flags to use |
48 |
|
|
# 1563 - taking adress of a temporary |
49 |
|
|
# 811 - exception specification for implicitly declared virtual function (destructor usually) incompatible with that of override |
50 |
|
|
# 161 - openmp pargmas are unknown when not compiling with openmp |
51 |
phornby |
1132 |
cc_common_flags = '/FD /EHsc /GR /wd4068 ' |
52 |
|
|
cc_flags = cc_common_flags + '/O2 /Op /MT /W3' |
53 |
phornby |
1017 |
|
54 |
phornby |
1540 |
cc_flags_debug = cc_common_flags + '/Od /RTC1 /MTd /ZI /Yd /Y-' |
55 |
phornby |
1017 |
|
56 |
|
|
# c++ flags to use |
57 |
|
|
cxx_flags = '' |
58 |
|
|
cxx_flags_debug = '' |
59 |
phornby |
1537 |
|
60 |
|
|
# linker flags to use |
61 |
|
|
#link_flags = '' |
62 |
|
|
link_flags_debug = '/debug /incremental:no /opt:ref /opt:icf' |
63 |
|
|
|
64 |
phornby |
1017 |
# static library archiver flags to use |
65 |
|
|
#ar_flags = 'crus' |
66 |
|
|
|
67 |
|
|
# system specific libraries to link with |
68 |
|
|
sys_libs = [] |