2005-06-17 14:40:51 +02:00
|
|
|
# This file is part of Mapnik (c++ mapping toolkit)
|
2006-02-01 00:20:23 +01:00
|
|
|
# Copyright (C) 2005 Artem Pavlenko, Jean-Francois Doyon
|
2005-06-14 17:06:59 +02:00
|
|
|
#
|
2005-06-17 14:40:51 +02:00
|
|
|
# Mapnik is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or any later version.
|
2006-02-01 00:20:23 +01:00
|
|
|
#
|
2005-06-17 14:40:51 +02:00
|
|
|
# This program 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 General Public License for more details.
|
2006-02-01 00:20:23 +01:00
|
|
|
#
|
2005-06-17 14:40:51 +02:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
2006-02-01 00:20:23 +01:00
|
|
|
#
|
2005-06-17 14:40:51 +02:00
|
|
|
# $Id$
|
|
|
|
|
2005-06-14 17:06:59 +02:00
|
|
|
import glob
|
|
|
|
|
|
|
|
Import('env')
|
2006-02-01 00:20:23 +01:00
|
|
|
|
2008-01-21 21:15:07 +01:00
|
|
|
if env['PLATFORM'] == 'SunOS':
|
|
|
|
env.StaticLibrary('agg', glob.glob('./src/' + '*.cpp'), LIBS=[], CPPPATH='./include', CXXFLAGS='-O -KPIC -DNDEBUG')
|
|
|
|
else:
|
2009-06-30 18:22:29 +02:00
|
|
|
env.StaticLibrary('agg', glob.glob('./src/' + '*.cpp'), LIBS=[], CPPPATH='./include', CXXFLAGS='-O%s -fPIC -DNDEBUG' % env['OPTIMIZATION'])
|