2005-06-17 14:40:51 +02:00
|
|
|
#
|
2006-03-31 12:32:02 +02:00
|
|
|
# This file is part of Mapnik (c++ mapping toolkit)
|
2006-02-01 00:18:24 +01:00
|
|
|
#
|
2006-03-31 12:32:02 +02:00
|
|
|
# Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon
|
2006-02-01 00:18:24 +01:00
|
|
|
#
|
2006-03-31 12:32:02 +02:00
|
|
|
# Mapnik is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2006-02-01 00:18:24 +01:00
|
|
|
#
|
2005-06-17 14:40:51 +02:00
|
|
|
# $Id$
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2006-03-31 12:32:02 +02:00
|
|
|
|
2006-09-06 11:14:41 +02:00
|
|
|
import os, sys, platform
|
2006-02-01 00:18:24 +01:00
|
|
|
|
2006-09-06 11:14:41 +02:00
|
|
|
if platform.uname()[4] == 'x86_64':
|
2006-10-04 13:22:18 +02:00
|
|
|
LIBDIR_SCHEMA='lib64'
|
2008-03-29 02:01:12 +01:00
|
|
|
elif platform.uname()[4] == 'ppc64':
|
|
|
|
LIBDIR_SCHEMA='lib64'
|
2006-10-04 13:22:18 +02:00
|
|
|
else:
|
|
|
|
LIBDIR_SCHEMA='lib'
|
2006-09-06 11:14:41 +02:00
|
|
|
|
2008-01-21 21:15:07 +01:00
|
|
|
#### SCons build options and initial setup ####
|
|
|
|
|
|
|
|
# All of the following options may be modified at the command-line, for example:
|
|
|
|
# `python scons/scons PREFIX=/opt`
|
2007-09-25 20:47:12 +02:00
|
|
|
opts = Options('config.py')
|
2008-01-21 21:15:07 +01:00
|
|
|
opts.Add('CXX', 'The C++ compiler to use (defaults to g++).', 'g++')
|
2006-02-01 00:18:24 +01:00
|
|
|
opts.Add('PREFIX', 'The install path "prefix"', '/usr/local')
|
|
|
|
opts.Add(PathOption('BOOST_INCLUDES', 'Search path for boost include files', '/usr/include'))
|
2006-10-04 13:22:18 +02:00
|
|
|
opts.Add(PathOption('BOOST_LIBS', 'Search path for boost library files', '/usr/' + LIBDIR_SCHEMA))
|
2007-01-17 12:59:41 +01:00
|
|
|
opts.Add('BOOST_TOOLKIT','Specify boost toolkit e.g. gcc41.','',False)
|
2007-08-28 12:12:38 +02:00
|
|
|
opts.Add(('FREETYPE_CONFIG', 'The path to the freetype-config executable.', 'freetype-config'))
|
2007-09-25 20:47:12 +02:00
|
|
|
opts.Add(('XML2_CONFIG', 'The path to the xml2-config executable.', 'xml2-config'))
|
2008-02-18 22:40:34 +01:00
|
|
|
opts.Add(PathOption('ICU_INCLUDES', 'Search path for ICU include files', '/usr/include'))
|
|
|
|
opts.Add(PathOption('ICU_LIBS','Search path for ICU include files','/usr/' + LIBDIR_SCHEMA))
|
2006-02-01 00:18:24 +01:00
|
|
|
opts.Add(PathOption('PNG_INCLUDES', 'Search path for libpng include files', '/usr/include'))
|
2006-10-04 13:22:18 +02:00
|
|
|
opts.Add(PathOption('PNG_LIBS','Search path for libpng include files','/usr/' + LIBDIR_SCHEMA))
|
2008-06-29 12:40:08 +02:00
|
|
|
opts.Add(PathOption('JPEG_INCLUDES', 'Search path for libjpeg include files', '/usr/local/include'))
|
|
|
|
opts.Add(PathOption('JPEG_LIBS', 'Search path for libjpeg library files', '/usr/local/' + LIBDIR_SCHEMA))
|
2006-02-01 00:18:24 +01:00
|
|
|
opts.Add(PathOption('TIFF_INCLUDES', 'Search path for libtiff include files', '/usr/include'))
|
2006-10-04 13:22:18 +02:00
|
|
|
opts.Add(PathOption('TIFF_LIBS', 'Search path for libtiff library files', '/usr/' + LIBDIR_SCHEMA))
|
2006-02-01 00:18:24 +01:00
|
|
|
opts.Add(PathOption('PGSQL_INCLUDES', 'Search path for PostgreSQL include files', '/usr/include'))
|
2006-10-04 13:22:18 +02:00
|
|
|
opts.Add(PathOption('PGSQL_LIBS', 'Search path for PostgreSQL library files', '/usr/' + LIBDIR_SCHEMA))
|
2008-06-29 12:40:08 +02:00
|
|
|
opts.Add(PathOption('PROJ_INCLUDES', 'Search path for PROJ.4 include files', '/opt/proj4/include'))
|
|
|
|
opts.Add(PathOption('PROJ_LIBS', 'Search path for PROJ.4 library files', '/opt/proj4/' + LIBDIR_SCHEMA))
|
2007-10-05 13:27:00 +02:00
|
|
|
opts.Add(PathOption('GDAL_INCLUDES', 'Search path for GDAL include files', '/usr/include'))
|
2007-05-20 22:19:04 +02:00
|
|
|
opts.Add(PathOption('GDAL_LIBS', 'Search path for GDAL library files', '/usr/' + LIBDIR_SCHEMA))
|
2006-02-05 22:01:54 +01:00
|
|
|
opts.Add(PathOption('PYTHON','Python executable', sys.executable))
|
2008-06-29 12:40:08 +02:00
|
|
|
opts.Add(ListOption('INPUT_PLUGINS','Input drivers to include','all',['postgis','shape','raster','gdal','osm']))
|
2006-02-01 00:18:24 +01:00
|
|
|
opts.Add(ListOption('BINDINGS','Language bindings to build','all',['python']))
|
2007-09-16 13:23:51 +02:00
|
|
|
opts.Add(BoolOption('DEBUG', 'Compile a debug version of mapnik', 'False'))
|
2006-12-17 13:05:47 +01:00
|
|
|
opts.Add('DESTDIR', 'The root directory to install into. Useful mainly for binary package building', '/')
|
2007-03-22 11:54:44 +01:00
|
|
|
opts.Add(EnumOption('THREADING','Set threading support','multi', ['multi','single']))
|
2007-09-25 20:47:12 +02:00
|
|
|
opts.Add(EnumOption('XMLPARSER','Set xml parser ','tinyxml', ['tinyxml','spirit','libxml2']))
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2006-02-01 00:18:24 +01:00
|
|
|
env = Environment(ENV=os.environ, options=opts)
|
2007-03-22 11:54:44 +01:00
|
|
|
|
2008-01-03 12:41:39 +01:00
|
|
|
def color_print(color,text):
|
|
|
|
# 1 - red
|
|
|
|
# 2 - green
|
|
|
|
# 3 - yellow
|
|
|
|
# 4 - blue
|
|
|
|
print "\033[9%sm%s\033[0m" % (color,text)
|
|
|
|
|
2006-10-04 13:22:18 +02:00
|
|
|
env['LIBDIR_SCHEMA'] = LIBDIR_SCHEMA
|
2007-03-16 11:11:37 +01:00
|
|
|
env['PLATFORM'] = platform.uname()[0]
|
2008-01-03 12:41:39 +01:00
|
|
|
color_print (4,"Building on %s ..." % env['PLATFORM'])
|
2006-02-01 00:18:24 +01:00
|
|
|
Help(opts.GenerateHelpText(env))
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2008-01-28 15:51:10 +01:00
|
|
|
thread_suffix = '-mt'
|
|
|
|
|
|
|
|
if env['PLATFORM'] == 'FreeBSD':
|
|
|
|
thread_suffix = ''
|
|
|
|
env.Append(LIBS = 'pthread')
|
|
|
|
|
2006-02-01 00:18:24 +01:00
|
|
|
conf = Configure(env)
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2008-01-21 21:15:07 +01:00
|
|
|
#### Libraries and headers dependency checks ####
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2008-01-21 21:15:07 +01:00
|
|
|
# Helper function for uniquely appending paths to a SCons path listing.
|
|
|
|
def uniq_add(env, key, val):
|
|
|
|
if not val in env[key]: env[key].append(val)
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2008-01-21 21:15:07 +01:00
|
|
|
# Libraries and headers dependency checks
|
|
|
|
env['CPPPATH'] = ['#agg/include', '#tinyxml', '#include', '#']
|
2006-02-01 00:18:24 +01:00
|
|
|
env['LIBPATH'] = ['#agg', '#src']
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2008-01-21 21:15:07 +01:00
|
|
|
# Solaris & Sun Studio settings (the `SUNCC` flag will only be
|
|
|
|
# set if the `CXX` option begins with `CC`)
|
|
|
|
SOLARIS = env['PLATFORM'] == 'SunOS'
|
|
|
|
SUNCC = SOLARIS and env['CXX'].startswith('CC')
|
|
|
|
|
|
|
|
# For Solaris include paths (e.g., for freetype2, ltdl, etc.).
|
|
|
|
if SOLARIS:
|
|
|
|
blastwave_dir = '/opt/csw/%s'
|
|
|
|
uniq_add(env, 'CPPPATH', blastwave_dir % 'include')
|
|
|
|
uniq_add(env, 'LIBPATH', blastwave_dir % LIBDIR_SCHEMA)
|
|
|
|
|
|
|
|
# If the Sun Studio C++ compiler (`CC`) is used instead of GCC.
|
|
|
|
if SUNCC:
|
|
|
|
env['CC'] = 'cc'
|
|
|
|
# To be compatible w/Boost everything needs to be compiled
|
|
|
|
# with the `-library=stlport4` flag (which needs to come
|
|
|
|
# before the `-o` flag).
|
|
|
|
env['CXX'] = 'CC -library=stlport4'
|
|
|
|
if env['THREADING'] == 'multi':
|
|
|
|
env['CXXFLAGS'] = ['-mt']
|
|
|
|
|
|
|
|
# Adding the prerequisite library directories to the include path for
|
|
|
|
# compiling and the library path for linking, respectively.
|
2008-01-21 21:56:31 +01:00
|
|
|
for prereq in ('BOOST', 'PNG', 'JPEG', 'TIFF', 'PGSQL', 'PROJ', 'GDAL',):
|
2008-01-21 21:15:07 +01:00
|
|
|
inc_path = env['%s_INCLUDES' % prereq]
|
|
|
|
lib_path = env['%s_LIBS' % prereq]
|
|
|
|
uniq_add(env, 'CPPPATH', inc_path)
|
|
|
|
uniq_add(env, 'LIBPATH', lib_path)
|
2006-10-16 15:44:52 +02:00
|
|
|
|
2006-02-26 22:47:35 +01:00
|
|
|
env.ParseConfig(env['FREETYPE_CONFIG'] + ' --libs --cflags')
|
2008-02-18 22:40:34 +01:00
|
|
|
|
2008-03-12 20:14:51 +01:00
|
|
|
if env.Execute('pkg-config --exists cairomm-1.0') == 0:
|
|
|
|
env.ParseConfig('pkg-config --libs --cflags cairomm-1.0')
|
|
|
|
env.Append(CXXFLAGS = '-DHAVE_CAIRO');
|
2006-12-17 12:56:57 +01:00
|
|
|
|
2007-09-16 13:23:51 +02:00
|
|
|
if env['XMLPARSER'] == 'tinyxml':
|
|
|
|
env.Append(CXXFLAGS = '-DBOOST_PROPERTY_TREE_XML_PARSER_TINYXML -DTIXML_USE_STL')
|
2007-09-25 20:47:12 +02:00
|
|
|
elif env['XMLPARSER'] == 'libxml2':
|
|
|
|
env.ParseConfig(env['XML2_CONFIG'] + ' --libs --cflags')
|
|
|
|
env.Append(CXXFLAGS = '-DHAVE_LIBXML2');
|
2007-09-16 13:23:51 +02:00
|
|
|
|
2006-02-01 00:18:24 +01:00
|
|
|
C_LIBSHEADERS = [
|
2006-10-03 10:37:34 +02:00
|
|
|
['m', 'math.h', True],
|
2006-02-01 00:18:24 +01:00
|
|
|
['ltdl', 'ltdl.h', True],
|
|
|
|
['png', 'png.h', True],
|
|
|
|
['tiff', 'tiff.h', True],
|
|
|
|
['z', 'zlib.h', True],
|
2006-02-26 22:47:35 +01:00
|
|
|
['jpeg', ['stdio.h', 'jpeglib.h'], True],
|
2006-10-16 15:44:52 +02:00
|
|
|
['proj', 'proj_api.h', True],
|
|
|
|
['pq', 'libpq-fe.h', False]
|
2006-02-01 00:18:24 +01:00
|
|
|
]
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2007-04-25 21:18:44 +02:00
|
|
|
CXX_LIBSHEADERS = [
|
2008-02-18 22:40:34 +01:00
|
|
|
['icuuc','unicode/unistr.h',True],
|
|
|
|
['icudata','unicode/utypes.h' , True],
|
2007-12-06 13:11:17 +01:00
|
|
|
['gdal', 'gdal_priv.h',False]
|
2007-04-25 21:18:44 +02:00
|
|
|
]
|
|
|
|
|
2006-02-01 00:18:24 +01:00
|
|
|
BOOST_LIBSHEADERS = [
|
2008-06-29 12:40:08 +02:00
|
|
|
['system', 'boost/system/system_error.hpp', True], # uncomment this on Darwin + boost_1_35
|
2007-01-23 23:49:09 +01:00
|
|
|
['filesystem', 'boost/filesystem/operations.hpp', True],
|
2006-02-01 00:18:24 +01:00
|
|
|
['regex', 'boost/regex.hpp', True],
|
2008-02-04 12:12:32 +01:00
|
|
|
['iostreams','boost/iostreams/device/mapped_file.hpp',True],
|
2006-02-01 00:18:24 +01:00
|
|
|
['program_options', 'boost/program_options.hpp', False]
|
|
|
|
]
|
|
|
|
|
2008-02-04 17:14:05 +01:00
|
|
|
if env['THREADING'] == 'multi':
|
|
|
|
BOOST_LIBSHEADERS.append(['thread', 'boost/thread/mutex.hpp', True])
|
|
|
|
|
2006-02-01 00:18:24 +01:00
|
|
|
for libinfo in C_LIBSHEADERS:
|
|
|
|
if not conf.CheckLibWithHeader(libinfo[0], libinfo[1], 'C') and libinfo[2]:
|
2008-01-03 12:41:39 +01:00
|
|
|
color_print (1,'Could not find header or shared library for %s, exiting!' % libinfo[0])
|
2006-02-01 00:18:24 +01:00
|
|
|
Exit(1)
|
|
|
|
|
2007-04-25 21:18:44 +02:00
|
|
|
for libinfo in CXX_LIBSHEADERS:
|
|
|
|
if not conf.CheckLibWithHeader(libinfo[0], libinfo[1], 'C++') and libinfo[2]:
|
2008-01-03 12:41:39 +01:00
|
|
|
color_print(1,'Could not find header or shared library for %s, exiting!' % libinfo[0])
|
2007-04-25 21:18:44 +02:00
|
|
|
Exit(1)
|
2007-01-17 12:59:41 +01:00
|
|
|
|
2007-03-16 13:09:58 +01:00
|
|
|
if len(env['BOOST_TOOLKIT']):
|
2007-03-22 11:54:44 +01:00
|
|
|
env['BOOST_APPEND'] = '-%s' % env['BOOST_TOOLKIT']
|
2007-03-16 13:09:58 +01:00
|
|
|
else:
|
|
|
|
env['BOOST_APPEND']=''
|
2008-06-29 12:40:08 +02:00
|
|
|
|
2007-03-16 13:09:58 +01:00
|
|
|
|
2006-02-15 00:59:53 +01:00
|
|
|
for count, libinfo in enumerate(BOOST_LIBSHEADERS):
|
2007-03-22 11:54:44 +01:00
|
|
|
if env['THREADING'] == 'multi' :
|
2008-06-29 12:40:08 +02:00
|
|
|
if not conf.CheckLibWithHeader('boost_%s%s%s' % (libinfo[0],thread_suffix,env['BOOST_APPEND']), libinfo[1], 'C++') and libinfo[2] :
|
2008-01-03 12:41:39 +01:00
|
|
|
color_print(1,'Could not find header or shared library for boost %s, exiting!' % libinfo[0])
|
2006-02-01 00:18:24 +01:00
|
|
|
Exit(1)
|
2007-03-22 11:54:44 +01:00
|
|
|
elif not conf.CheckLibWithHeader('boost_%s%s' % (libinfo[0], env['BOOST_APPEND']), libinfo[1], 'C++') :
|
2008-01-03 12:41:39 +01:00
|
|
|
color_print(1,'Could not find header or shared library for boost %s, exiting!' % libinfo[0])
|
2007-03-22 11:54:44 +01:00
|
|
|
Exit(1)
|
|
|
|
|
2006-02-05 23:03:43 +01:00
|
|
|
Export('env')
|
|
|
|
|
|
|
|
inputplugins = [ driver.strip() for driver in Split(env['INPUT_PLUGINS'])]
|
|
|
|
|
|
|
|
bindings = [ binding.strip() for binding in Split(env['BINDINGS'])]
|
|
|
|
|
2008-01-21 21:15:07 +01:00
|
|
|
#### Build instructions & settings ####
|
2007-03-16 11:11:37 +01:00
|
|
|
|
|
|
|
# Build agg first, doesn't need anything special
|
|
|
|
SConscript('agg/SConscript')
|
|
|
|
|
|
|
|
# Build the core library
|
|
|
|
SConscript('src/SConscript')
|
|
|
|
|
|
|
|
# Build shapeindex and remove its dependency from the LIBS
|
2008-06-29 12:40:08 +02:00
|
|
|
# if 'boost_program_options%s%s-1_35' % (env['BOOST_APPEND'],thread_suffix) in env['LIBS']:
|
|
|
|
if 'boost_program_options-mt-1_35' in env['LIBS']:
|
2007-03-16 11:11:37 +01:00
|
|
|
SConscript('utils/shapeindex/SConscript')
|
2008-06-29 12:40:08 +02:00
|
|
|
env['LIBS'].remove('boost_program_options-mt-1_35')
|
2007-03-16 11:11:37 +01:00
|
|
|
|
|
|
|
# Build the input plug-ins
|
2008-06-29 12:40:08 +02:00
|
|
|
|
2007-03-16 11:11:37 +01:00
|
|
|
if 'postgis' in inputplugins and 'pq' in env['LIBS']:
|
|
|
|
SConscript('plugins/input/postgis/SConscript')
|
|
|
|
env['LIBS'].remove('pq')
|
|
|
|
|
|
|
|
if 'shape' in inputplugins:
|
|
|
|
SConscript('plugins/input/shape/SConscript')
|
|
|
|
|
|
|
|
if 'raster' in inputplugins:
|
|
|
|
SConscript('plugins/input/raster/SConscript')
|
|
|
|
|
2007-04-25 21:18:44 +02:00
|
|
|
if 'gdal' in inputplugins and 'gdal' in env['LIBS']:
|
|
|
|
SConscript('plugins/input/gdal/SConscript')
|
|
|
|
|
2008-06-29 12:40:08 +02:00
|
|
|
if 'osm' in inputplugins :
|
|
|
|
SConscript('plugins/input/osm/SConscript')
|
2007-04-25 21:18:44 +02:00
|
|
|
|
2008-01-21 21:15:07 +01:00
|
|
|
# Build the Python bindings.
|
2006-02-01 00:18:24 +01:00
|
|
|
if 'python' in env['BINDINGS']:
|
|
|
|
if not os.access(env['PYTHON'], os.X_OK):
|
2008-01-03 12:41:39 +01:00
|
|
|
color_print(1,"Cannot run python interpreter at '%s', make sure that you have the permissions to execute it." % env['PYTHON'])
|
2006-02-01 00:18:24 +01:00
|
|
|
Exit(1)
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2006-02-01 00:18:24 +01:00
|
|
|
env['PYTHON_PREFIX'] = os.popen("%s -c 'import sys; print sys.prefix'" % env['PYTHON']).read().strip()
|
|
|
|
env['PYTHON_VERSION'] = os.popen("%s -c 'import sys; print sys.version'" % env['PYTHON']).read()[0:3]
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2008-01-03 12:41:39 +01:00
|
|
|
color_print(4,'Bindings Python version... %s' % env['PYTHON_VERSION'])
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2006-02-01 00:18:24 +01:00
|
|
|
majver, minver = env['PYTHON_VERSION'].split('.')
|
|
|
|
|
2006-02-20 02:17:04 +01:00
|
|
|
if (int(majver), int(minver)) < (2, 2):
|
2008-01-03 12:41:39 +01:00
|
|
|
color_print(1,"Python version 2.2 or greater required")
|
2006-02-01 00:18:24 +01:00
|
|
|
Exit(1)
|
|
|
|
|
2008-01-03 12:41:39 +01:00
|
|
|
color_print(4,'Python %s prefix... %s' % (env['PYTHON_VERSION'], env['PYTHON_PREFIX']))
|
2006-02-01 00:18:24 +01:00
|
|
|
|
2006-02-05 23:03:43 +01:00
|
|
|
SConscript('bindings/python/SConscript')
|
2006-10-16 15:44:52 +02:00
|
|
|
|
2006-02-01 00:18:24 +01:00
|
|
|
env = conf.Finish()
|
|
|
|
|
2008-01-21 21:15:07 +01:00
|
|
|
# Common C++ flags.
|
2008-02-04 17:14:05 +01:00
|
|
|
if env['THREADING'] == 'multi' :
|
|
|
|
common_cxx_flags = '-D%s -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE ' % env['PLATFORM'].upper()
|
|
|
|
else :
|
|
|
|
common_cxx_flags = '-D%s ' % env['PLATFORM'].upper()
|
|
|
|
|
2008-01-21 21:15:07 +01:00
|
|
|
# Mac OSX (Darwin) special settings
|
|
|
|
if env['PLATFORM'] == 'Darwin':
|
|
|
|
pthread = ''
|
|
|
|
# Getting the macintosh version number, sticking as a compiler macro
|
|
|
|
# for Leopard -- needed because different workarounds are needed than
|
|
|
|
# for Tiger.
|
|
|
|
if platform.mac_ver()[0].startswith('10.5'):
|
|
|
|
common_cxx_flags += '-DOSX_LEOPARD '
|
2006-02-01 00:18:24 +01:00
|
|
|
else:
|
2008-01-21 21:15:07 +01:00
|
|
|
pthread = '-pthread'
|
|
|
|
|
|
|
|
# Common debugging flags.
|
|
|
|
debug_flags = '-g -DDEBUG -DMAPNIK_DEBUG'
|
|
|
|
ndebug_flags = '-DNDEBUG'
|
|
|
|
|
|
|
|
# Customizing the C++ compiler flags depending on:
|
|
|
|
# (1) the C++ compiler used; and
|
|
|
|
# (2) whether debug binaries are requested.
|
|
|
|
if SUNCC:
|
|
|
|
if env['DEBUG']:
|
|
|
|
env.Append(CXXFLAGS = common_cxx_flags + debug_flags)
|
|
|
|
else:
|
|
|
|
env.Append(CXXFLAGS = common_cxx_flags + '-O %s' % ndebug_flags)
|
|
|
|
else:
|
|
|
|
# Common flags for GCC.
|
|
|
|
gcc_cxx_flags = '-ansi -Wall %s -ftemplate-depth-100 %s' % (pthread, common_cxx_flags)
|
|
|
|
|
|
|
|
if env['DEBUG']:
|
|
|
|
env.Append(CXXFLAGS = gcc_cxx_flags + '-O0 -fno-inline %s' % debug_flags)
|
|
|
|
else:
|
|
|
|
env.Append(CXXFLAGS = gcc_cxx_flags + '-O2 -finline-functions -Wno-inline %s' % ndebug_flags)
|
2006-03-03 01:18:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
SConscript('fonts/SConscript')
|
2007-08-28 12:12:38 +02:00
|
|
|
|