/[escript]/branches/stage3.0/scons/linux_gcc_eg_options.py
ViewVC logotype

Contents of /branches/stage3.0/scons/linux_gcc_eg_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1634 - (show annotations)
Sat Jul 12 09:08:33 2008 UTC (11 years, 3 months ago) by phornby
Original Path: trunk/scons/linux_gcc_eg_options.py
File MIME type: text/x-python
File size: 1252 byte(s)
linux_gcc_eg_options.py:
remove the std99 option, it is no longer needed as the code compiles without
C 1999 extension (need for these extensions elinminated in windows port).
Turn on all warnings except unknown pragmas. Should catch a lot of stuff.

SConstruct:
Impassioned plea

system_dep.h:
Add the standard incantation for dealing with const declarations
in C code called from C and C++

blocktimer:
Get the calling interface right for C code called from C and C++
and use __const as defined in system_dep.h
(Should be re-factored into compiler_dep.h file).

MeshAdapterFactory.cpp:
Since we have (effectively) no control over netCDF policy,
cast const char *'s to char *'s


1 #
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 import sys
18
19 # locations of include files for python
20 python_path = "/usr/include/python%s.%s"%(sys.version_info[0],sys.version_info[1])
21 python_lib_path = '/usr/lib'
22 python_lib = "python%s.%s"%(sys.version_info[0],sys.version_info[1])
23
24 # locations of libraries for boost
25 boost_path = '/usr/include'
26 boost_lib_path = '/usr/lib'
27 boost_lib = 'boost_python'
28
29 useNetCDF = 'yes'
30 netCDF_libs = ['netcdf', 'netcdf_c++']
31
32 # locations of doc building executables
33 doxygen_path = '/usr/bin'
34 epydoc_path = '/usr/bin'
35
36 # c flags to use
37 cc_flags = '-O3 -fpic -Wno-unknown-pragmas'
38 cc_flags_debug = '-g -O0 -fpic -Wno-unknown-pragmas'
39
40 # c++ flags to use
41 cxx_flags = '-ansi'
42 cxx_flags_debug = '-ansi -DDOASSERT -DDOPROF'
43
44 # static library archiver flags to use
45 #ar_flags = 'crus'
46
47 # system specific libraries to link with
48 #sys_libs = []

  ViewVC Help
Powered by ViewVC 1.1.26