root/trunk/agg/SConscript

Revision 603, 1.1 kB (checked in by artem, 12 months ago)

applied patch to build on OSX Leopard and Sun's C++ compiler on Solaris from Justin Bronn

Line 
1#  This file is part of Mapnik (c++ mapping toolkit)
2#  Copyright (C) 2005 Artem Pavlenko, Jean-Francois Doyon
3#
4#  Mapnik is free software; you can redistribute it and/or
5#  modify it under the terms of the GNU General Public License
6#  as published by the Free Software Foundation; either version 2
7#  of the License, or any later version.
8#
9#  This program is distributed in the hope that it will be useful,
10#  but WITHOUT ANY WARRANTY; without even the implied warranty of
11#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12#  GNU General Public License for more details.
13#
14#  You should have received a copy of the GNU General Public License
15#  along with this program; if not, write to the Free Software
16#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17#
18# $Id$
19
20import glob
21
22Import('env')
23
24if env['PLATFORM'] == 'SunOS':
25    env.StaticLibrary('agg', glob.glob('./src/' + '*.cpp'), LIBS=[], CPPPATH='./include', CXXFLAGS='-O -KPIC -DNDEBUG')
26else:
27    env.StaticLibrary('agg', glob.glob('./src/' + '*.cpp'), LIBS=[], CPPPATH='./include', CXXFLAGS='-O3 -fPIC -DNDEBUG')
Note: See TracBrowser for help on using the browser.