root/trunk/plugins/input/shape/SConscript @ 703

Revision 703, 1.8 kB (checked in by artem, 2 years ago)

reverting back to 700

Line 
1       
2# This file is part of Mapnik (c++ mapping toolkit)
3#
4# Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon
5#
6# Mapnik is free software; you can redistribute it and/or
7# modify it under the terms of the GNU Lesser General Public
8# License as published by the Free Software Foundation; either
9# version 2.1 of the License, or (at your option) any later version.
10#
11# This library is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14# Lesser General Public License for more details.
15#
16# You should have received a copy of the GNU Lesser General Public
17# License along with this library; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19#
20# $Id$
21
22
23Import ('env')
24
25prefix = env['PREFIX']
26install_prefix = env['DESTDIR'] + '/' + prefix
27
28shape_src = Split(
29        """
30        dbffile.cpp
31        shape.cpp
32        shape_featureset.cpp
33        shapefile.cpp
34        shape_index_featureset.cpp
35        shape_io.cpp
36        """
37        )
38thread_suffix = '-mt'
39if env['PLATFORM'] == 'FreeBSD':
40    thread_suffix = ''
41   
42if env['THREADING'] == 'multi':
43    libraries = ['boost_iostreams%s%s' % (env['BOOST_APPEND'],thread_suffix) ]
44else:
45    libraries = ['boost_iostreams%s' % (env['BOOST_APPEND']) ]
46   
47if env['PLATFORM'] == 'Darwin':
48    libraries.append('mapnik')
49    libraries.append('icuuc')
50    libraries.append('icudata')
51
52shape_inputdriver = env.SharedLibrary('shape', SHLIBSUFFIX='.input', source=shape_src, SHLIBPREFIX='', LIBS = libraries)
53
54env.Install(install_prefix + '/' + env['LIBDIR_SCHEMA'] + '/mapnik/input', shape_inputdriver)
55env.Alias('install', install_prefix + '/' + env['LIBDIR_SCHEMA'] + '/mapnik/input')
Note: See TracBrowser for help on using the browser.