2005-06-17 12:40:51 +00:00
|
|
|
# This file is part of Mapnik (c++ mapping toolkit)
|
2006-01-31 23:20:23 +00:00
|
|
|
# Copyright (C) 2005 Artem Pavlenko, Jean-Francois Doyon
|
2005-06-14 15:06:59 +00:00
|
|
|
#
|
2005-06-17 12:40:51 +00: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-01-31 23:20:23 +00:00
|
|
|
#
|
2005-06-17 12:40:51 +00: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-01-31 23:20:23 +00:00
|
|
|
#
|
2005-06-17 12:40:51 +00: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-01-31 23:20:23 +00:00
|
|
|
#
|
2005-06-17 12:40:51 +00:00
|
|
|
# $Id$
|
|
|
|
|
2005-06-14 15:06:59 +00:00
|
|
|
import glob
|
|
|
|
|
|
|
|
Import('env')
|
2006-01-31 23:20:23 +00:00
|
|
|
|
2010-07-15 00:20:38 +00:00
|
|
|
agg_env = env.Clone()
|
|
|
|
|
2010-10-05 00:10:37 +00:00
|
|
|
if env['SUNCC']:
|
|
|
|
cxxflags = '-O -KPIC -DNDEBUG'
|
2008-01-21 20:15:07 +00:00
|
|
|
else:
|
2010-10-05 00:10:37 +00:00
|
|
|
cxxflags = '-O%s -fPIC -DNDEBUG' % env['OPTIMIZATION']
|
|
|
|
|
|
|
|
agg_env.StaticLibrary('agg', glob.glob('./src/' + '*.cpp'), LIBS=[], CPPPATH='./include', CXXFLAGS=cxxflags)
|