mapnik/agg/SConscript

32 lines
1.1 KiB
Text
Raw Normal View History

# 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
#
# 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
#
# 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
#
# 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
#
# $Id$
2005-06-14 15:06:59 +00:00
import glob
Import('env')
2006-01-31 23:20:23 +00:00
agg_env = env.Clone()
if env['SUNCC']:
cxxflags = '-O -KPIC -DNDEBUG'
else:
cxxflags = '-O%s -fPIC -DNDEBUG' % env['OPTIMIZATION']
agg_env.StaticLibrary('agg', glob.glob('./src/' + '*.cpp'), LIBS=[], CPPPATH='./include', CXXFLAGS=cxxflags)