2005-06-17 14:40:51 +02:00
|
|
|
#
|
2006-03-31 12:32:02 +02:00
|
|
|
# This file is part of Mapnik (c++ mapping toolkit)
|
|
|
|
#
|
|
|
|
# Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon
|
|
|
|
#
|
|
|
|
# Mapnik is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library 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
|
|
|
|
# Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
#
|
2005-06-17 14:40:51 +02:00
|
|
|
# $Id$
|
|
|
|
|
2006-03-31 12:32:02 +02:00
|
|
|
|
2008-01-03 13:16:27 +01:00
|
|
|
import os
|
2011-04-02 05:11:42 +02:00
|
|
|
import sys
|
2010-08-26 03:21:47 +02:00
|
|
|
import glob
|
2011-08-12 22:01:09 +02:00
|
|
|
from copy import copy
|
2010-08-26 03:21:47 +02:00
|
|
|
from subprocess import Popen, PIPE
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2006-02-01 00:09:52 +01:00
|
|
|
Import('env')
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2010-09-18 20:02:15 +02:00
|
|
|
lib_env = env.Clone()
|
|
|
|
|
2010-08-26 03:21:47 +02:00
|
|
|
def call(cmd, silent=True):
|
|
|
|
stdin, stderr = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE).communicate()
|
|
|
|
if not stderr:
|
|
|
|
return stdin.strip()
|
|
|
|
elif not silent:
|
|
|
|
print stderr
|
|
|
|
|
|
|
|
def ldconfig(*args,**kwargs):
|
|
|
|
call('ldconfig')
|
|
|
|
|
2008-01-03 13:16:27 +01:00
|
|
|
|
2011-08-12 22:01:09 +02:00
|
|
|
if env['LINKING'] == 'static':
|
|
|
|
lib_env.Append(CXXFLAGS="-fPIC")
|
2009-03-30 22:47:26 +02:00
|
|
|
|
2011-08-12 22:01:09 +02:00
|
|
|
mapnik_lib_link_flag = ''
|
2009-04-26 05:33:29 +02:00
|
|
|
|
2011-08-12 22:01:09 +02:00
|
|
|
ABI_VERSION = env['ABI_VERSION']
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2009-06-30 23:58:05 +02:00
|
|
|
filesystem = 'boost_filesystem%s' % env['BOOST_APPEND']
|
|
|
|
regex = 'boost_regex%s' % env['BOOST_APPEND']
|
2008-07-29 20:35:27 +02:00
|
|
|
|
2011-08-11 23:11:11 +02:00
|
|
|
# clear out and re-set libs for this env
|
|
|
|
lib_env['LIBS'] = ['freetype','ltdl','png','tiff','z','jpeg','proj',env['ICU_LIB_NAME'],filesystem,regex]
|
2009-06-30 23:58:05 +02:00
|
|
|
|
2010-07-14 06:40:33 +02:00
|
|
|
if env['HAS_CAIRO']:
|
2009-07-01 00:12:11 +02:00
|
|
|
# add cairo and cairomm-1.0 to libs
|
2011-08-11 23:11:11 +02:00
|
|
|
lib_env['LIBS'].append('cairomm-1.0')
|
|
|
|
lib_env['LIBS'].append('cairo')
|
2009-06-30 23:58:05 +02:00
|
|
|
|
|
|
|
if env['XMLPARSER'] == 'libxml2':
|
2011-08-11 23:11:11 +02:00
|
|
|
lib_env['LIBS'].append('xml2')
|
2009-06-30 23:58:05 +02:00
|
|
|
|
|
|
|
if env['THREADING'] == 'multi':
|
2011-08-11 23:11:11 +02:00
|
|
|
lib_env['LIBS'].append('boost_thread%s' % env['BOOST_APPEND'])
|
2009-06-30 23:58:05 +02:00
|
|
|
|
2010-12-01 03:49:06 +01:00
|
|
|
if env['PLATFORM'] in ('Darwin','SunOS'):
|
2010-02-21 02:00:09 +01:00
|
|
|
if env['HAS_BOOST_SYSTEM']:
|
2011-08-11 23:11:11 +02:00
|
|
|
lib_env['LIBS'].append('boost_system%s' % env['BOOST_APPEND'])
|
2009-06-30 23:58:05 +02:00
|
|
|
|
2011-08-12 22:01:09 +02:00
|
|
|
|
2011-08-13 05:25:07 +02:00
|
|
|
if not env['RUNTIME_LINK'] == 'static':
|
2011-08-12 22:01:09 +02:00
|
|
|
if env['INTERNAL_LIBAGG']:
|
|
|
|
lib_env['LIBS'].insert(0, 'agg')
|
|
|
|
else:
|
|
|
|
lib_env['LIBS'].append([lib for lib in env['LIBS'] if lib.startswith('agg')])
|
2009-08-28 01:18:09 +02:00
|
|
|
|
2006-02-21 20:55:24 +01:00
|
|
|
|
2010-07-18 22:39:05 +02:00
|
|
|
if env['PLATFORM'] == 'Darwin':
|
|
|
|
mapnik_libname = 'libmapnik2.dylib'
|
|
|
|
else:
|
|
|
|
mapnik_libname = 'libmapnik2.so.' + ("%d.%d" % (ABI_VERSION[0],ABI_VERSION[1]))
|
|
|
|
|
2007-03-16 11:11:37 +01:00
|
|
|
if env['PLATFORM'] == 'Darwin':
|
2009-04-26 05:33:29 +02:00
|
|
|
if env['FULL_LIB_PATH']:
|
2011-08-12 22:01:09 +02:00
|
|
|
lib_path = '%s/%s' % (env['MAPNIK_LIB_BASE'],mapnik_libname)
|
2009-04-26 05:33:29 +02:00
|
|
|
else:
|
2010-07-18 22:39:05 +02:00
|
|
|
lib_path = mapnik_libname
|
2010-09-18 20:02:15 +02:00
|
|
|
mapnik_lib_link_flag += ' -Wl,-install_name,%s' % lib_path
|
2010-07-18 23:26:50 +02:00
|
|
|
_d = {'version':env['MAPNIK_VERSION_STRING']}
|
2010-09-18 20:02:15 +02:00
|
|
|
mapnik_lib_link_flag += ' -current_version %(version)s -compatibility_version %(version)s' % _d
|
2010-08-26 03:21:47 +02:00
|
|
|
elif env['PLATFORM'] == 'SunOS':
|
|
|
|
if env['CXX'].startswith('CC'):
|
2010-09-18 20:02:15 +02:00
|
|
|
mapnik_lib_link_flag += ' -R. -h %s' % mapnik_libname
|
2010-08-26 03:21:47 +02:00
|
|
|
else:
|
2010-09-18 20:02:15 +02:00
|
|
|
mapnik_lib_link_flag += ' -Wl,-h,%s' % mapnik_libname
|
2007-03-16 11:11:37 +01:00
|
|
|
else: # Linux and others
|
2010-09-18 20:02:15 +02:00
|
|
|
mapnik_lib_link_flag += ' -Wl,-rpath-link,. -Wl,-soname,%s' % mapnik_libname
|
2005-06-14 17:06:59 +02:00
|
|
|
|
|
|
|
source = Split(
|
2005-09-08 15:05:39 +02:00
|
|
|
"""
|
2010-07-14 06:40:33 +02:00
|
|
|
color.cpp
|
2009-12-16 21:02:06 +01:00
|
|
|
box2d.cpp
|
|
|
|
expression_string.cpp
|
2006-10-04 13:22:18 +02:00
|
|
|
filter_factory.cpp
|
2011-02-01 23:55:50 +01:00
|
|
|
feature_type_style.cpp
|
2006-10-04 13:22:18 +02:00
|
|
|
font_engine_freetype.cpp
|
2008-06-29 12:58:48 +02:00
|
|
|
font_set.cpp
|
2011-01-26 02:18:40 +01:00
|
|
|
gradient.cpp
|
2005-06-14 17:06:59 +02:00
|
|
|
graphics.cpp
|
|
|
|
image_reader.cpp
|
|
|
|
image_util.cpp
|
|
|
|
layer.cpp
|
2006-10-04 13:22:18 +02:00
|
|
|
line_pattern_symbolizer.cpp
|
2005-06-14 17:06:59 +02:00
|
|
|
map.cpp
|
2007-09-25 20:47:12 +02:00
|
|
|
load_map.cpp
|
2005-06-14 17:06:59 +02:00
|
|
|
memory.cpp
|
2010-06-18 17:39:32 +02:00
|
|
|
parse_path.cpp
|
2006-10-17 16:12:53 +02:00
|
|
|
placement_finder.cpp
|
2005-06-14 17:06:59 +02:00
|
|
|
plugin.cpp
|
|
|
|
png_reader.cpp
|
2006-02-07 15:41:41 +01:00
|
|
|
point_symbolizer.cpp
|
2006-01-23 14:24:41 +01:00
|
|
|
polygon_pattern_symbolizer.cpp
|
2006-10-03 12:03:31 +02:00
|
|
|
save_map.cpp
|
2006-10-17 16:12:53 +02:00
|
|
|
shield_symbolizer.cpp
|
2006-10-04 13:22:18 +02:00
|
|
|
text_symbolizer.cpp
|
|
|
|
tiff_reader.cpp
|
|
|
|
wkb.cpp
|
2006-10-17 19:26:35 +02:00
|
|
|
projection.cpp
|
|
|
|
proj_transform.cpp
|
2006-10-19 00:44:37 +02:00
|
|
|
distance.cpp
|
|
|
|
scale_denominator.cpp
|
2006-12-06 21:26:59 +01:00
|
|
|
memory_datasource.cpp
|
2007-09-25 20:47:12 +02:00
|
|
|
stroke.cpp
|
|
|
|
symbolizer.cpp
|
2007-11-02 13:50:15 +01:00
|
|
|
arrow.cpp
|
2008-01-03 12:41:00 +01:00
|
|
|
unicode.cpp
|
2010-03-18 21:04:35 +01:00
|
|
|
glyph_symbolizer.cpp
|
2010-06-06 14:10:36 +02:00
|
|
|
markers_symbolizer.cpp
|
2010-07-06 02:37:05 +02:00
|
|
|
metawriter.cpp
|
2011-05-04 02:20:17 +02:00
|
|
|
raster_colorizer.cpp
|
2011-02-28 14:17:46 +01:00
|
|
|
text_placements.cpp
|
2011-02-24 16:54:59 +01:00
|
|
|
wkt/wkt_factory.cpp
|
2011-03-16 14:32:04 +01:00
|
|
|
metawriter_inmem.cpp
|
|
|
|
metawriter_factory.cpp
|
2011-04-06 15:02:31 +02:00
|
|
|
mapped_memory_cache.cpp
|
2011-04-26 23:44:52 +02:00
|
|
|
marker_cache.cpp
|
|
|
|
svg_parser.cpp
|
|
|
|
svg_path_parser.cpp
|
|
|
|
svg_points_parser.cpp
|
|
|
|
svg_transform_parser.cpp
|
2010-05-27 13:19:09 +02:00
|
|
|
"""
|
2005-06-14 17:06:59 +02:00
|
|
|
)
|
2007-09-25 20:47:12 +02:00
|
|
|
|
2010-11-20 00:02:58 +01:00
|
|
|
# add the datasource_cache.cpp with custom LIBTOOL flag if needed
|
|
|
|
if env['LIBTOOL_SUPPORTS_ADVISE']:
|
|
|
|
env3 = lib_env.Clone()
|
|
|
|
env3.Append(CXXFLAGS='-DLIBTOOL_SUPPORTS_ADVISE')
|
2011-08-11 23:11:11 +02:00
|
|
|
cpp = 'datasource_cache.cpp'
|
|
|
|
if env['LINKING'] == 'static':
|
|
|
|
source.insert(0,env3.StaticObject(cpp))
|
|
|
|
else:
|
|
|
|
source.insert(0,env3.SharedObject(cpp))
|
2010-11-20 00:02:58 +01:00
|
|
|
else:
|
|
|
|
source.insert(0,'datasource_cache.cpp')
|
2010-11-17 20:45:51 +01:00
|
|
|
|
2010-06-03 23:24:58 +02:00
|
|
|
if env['JPEG']:
|
|
|
|
source += Split(
|
|
|
|
"""
|
|
|
|
jpeg_reader.cpp
|
|
|
|
""")
|
|
|
|
|
2011-04-26 23:44:52 +02:00
|
|
|
# agg backend
|
|
|
|
source += Split(
|
|
|
|
"""
|
2010-06-24 17:57:25 +02:00
|
|
|
agg/agg_renderer.cpp
|
|
|
|
agg/process_building_symbolizer.cpp
|
2010-06-19 22:52:44 +02:00
|
|
|
agg/process_glyph_symbolizer.cpp
|
|
|
|
agg/process_line_symbolizer.cpp
|
2010-06-24 17:57:25 +02:00
|
|
|
agg/process_line_pattern_symbolizer.cpp
|
2010-06-19 23:01:30 +02:00
|
|
|
agg/process_text_symbolizer.cpp
|
2010-06-01 15:31:18 +02:00
|
|
|
agg/process_point_symbolizer.cpp
|
2010-06-19 22:52:44 +02:00
|
|
|
agg/process_polygon_symbolizer.cpp
|
2010-06-20 05:56:03 +02:00
|
|
|
agg/process_polygon_pattern_symbolizer.cpp
|
2010-06-24 17:57:25 +02:00
|
|
|
agg/process_raster_symbolizer.cpp
|
2010-06-01 15:31:18 +02:00
|
|
|
agg/process_shield_symbolizer.cpp
|
|
|
|
agg/process_markers_symbolizer.cpp
|
2010-05-27 13:19:09 +02:00
|
|
|
"""
|
2011-04-26 23:44:52 +02:00
|
|
|
)
|
|
|
|
|
2011-08-12 22:01:09 +02:00
|
|
|
if env['RUNTIME_LINK'] == "static":
|
|
|
|
source += glob.glob('../agg/src/' + '*.cpp')
|
|
|
|
#source.append(File('../agg/libagg.a'))
|
|
|
|
|
2011-04-26 23:44:52 +02:00
|
|
|
# grid backend
|
|
|
|
source += Split(
|
|
|
|
"""
|
|
|
|
grid/grid_renderer.cpp
|
|
|
|
grid/process_building_symbolizer.cpp
|
|
|
|
grid/process_glyph_symbolizer.cpp
|
|
|
|
grid/process_line_pattern_symbolizer.cpp
|
|
|
|
grid/process_line_symbolizer.cpp
|
|
|
|
grid/process_markers_symbolizer.cpp
|
|
|
|
grid/process_point_symbolizer.cpp
|
|
|
|
grid/process_polygon_pattern_symbolizer.cpp
|
|
|
|
grid/process_polygon_symbolizer.cpp
|
|
|
|
grid/process_raster_symbolizer.cpp
|
|
|
|
grid/process_shield_symbolizer.cpp
|
|
|
|
grid/process_text_symbolizer.cpp
|
|
|
|
""")
|
|
|
|
|
|
|
|
if env['SVG_RENDERER']: # svg backend
|
|
|
|
source += Split(
|
|
|
|
"""
|
|
|
|
svg/svg_renderer.cpp
|
|
|
|
svg/svg_generator.cpp
|
|
|
|
svg/svg_output_attributes.cpp
|
|
|
|
svg/process_symbolizers.cpp
|
|
|
|
svg/process_building_symbolizer.cpp
|
|
|
|
svg/process_glyph_symbolizer.cpp
|
|
|
|
svg/process_line_pattern_symbolizer.cpp
|
|
|
|
svg/process_line_symbolizer.cpp
|
|
|
|
svg/process_markers_symbolizer.cpp
|
|
|
|
svg/process_point_symbolizer.cpp
|
|
|
|
svg/process_polygon_pattern_symbolizer.cpp
|
|
|
|
svg/process_polygon_symbolizer.cpp
|
|
|
|
svg/process_raster_symbolizer.cpp
|
|
|
|
svg/process_shield_symbolizer.cpp
|
|
|
|
svg/process_text_symbolizer.cpp
|
|
|
|
""")
|
|
|
|
lib_env.Append(CXXFLAGS = '-DSVG_RENDERER')
|
2010-05-27 13:19:09 +02:00
|
|
|
|
2010-07-15 00:47:34 +02:00
|
|
|
if env['HAS_CAIRO']:
|
2011-01-13 21:32:19 +01:00
|
|
|
# attach libs to library linking environment
|
2011-04-02 05:11:42 +02:00
|
|
|
try:
|
2011-08-11 21:14:00 +02:00
|
|
|
cmd = 'pkg-config --libs cairomm-1.0'
|
|
|
|
if lib_env['RUNTIME_LINK'] == 'static':
|
|
|
|
cmd += ' --static'
|
|
|
|
lib_env.ParseConfig(cmd)
|
2011-04-02 05:11:42 +02:00
|
|
|
env2 = lib_env.Clone()
|
|
|
|
env2.Append(CXXFLAGS = '-DHAVE_CAIRO')
|
|
|
|
# attach cflags to specific compile environment
|
|
|
|
env2.ParseConfig('pkg-config --cflags cairomm-1.0')
|
|
|
|
fixup = ['cairo_renderer.cpp','graphics.cpp','image_util.cpp']
|
|
|
|
for cpp in fixup:
|
|
|
|
if cpp in source:
|
|
|
|
source.remove(cpp)
|
2011-08-11 23:11:11 +02:00
|
|
|
if env['LINKING'] == 'static':
|
|
|
|
source.insert(0,env2.StaticObject(cpp))
|
|
|
|
else:
|
|
|
|
source.insert(0,env2.SharedObject(cpp))
|
2011-04-02 05:11:42 +02:00
|
|
|
except OSError, e:
|
|
|
|
print '\nFailed to detect cairo/cairomm configuration, please re-run "python scons/scons.py configure"'
|
|
|
|
sys.exit(1)
|
2008-02-18 22:40:34 +01:00
|
|
|
|
2007-09-25 20:47:12 +02:00
|
|
|
if env['XMLPARSER'] == 'tinyxml':
|
|
|
|
source += Split(
|
|
|
|
"""
|
|
|
|
../tinyxml/tinystr.cpp
|
|
|
|
../tinyxml/tinyxml.cpp
|
|
|
|
../tinyxml/tinyxmlerror.cpp
|
|
|
|
../tinyxml/tinyxmlparser.cpp
|
|
|
|
""")
|
2010-07-15 02:20:50 +02:00
|
|
|
elif env['XMLPARSER'] == 'libxml2' and env['HAS_LIBXML2']:
|
2007-09-25 20:47:12 +02:00
|
|
|
source += Split(
|
|
|
|
"""
|
|
|
|
libxml2_loader.cpp
|
|
|
|
""")
|
2010-09-18 20:02:15 +02:00
|
|
|
env2 = lib_env.Clone()
|
2010-07-15 02:20:50 +02:00
|
|
|
env2.Append(CXXFLAGS = '-DHAVE_LIBXML2')
|
|
|
|
fixup = ['load_map.cpp','libxml2_loader.cpp']
|
|
|
|
for cpp in fixup:
|
|
|
|
if cpp in source:
|
|
|
|
source.remove(cpp)
|
2011-08-11 23:11:11 +02:00
|
|
|
if env['LINKING'] == 'static':
|
|
|
|
source.insert(0,env2.StaticObject(cpp))
|
|
|
|
else:
|
|
|
|
source.insert(0,env2.SharedObject(cpp))
|
2007-09-25 20:47:12 +02:00
|
|
|
|
2010-09-18 20:02:15 +02:00
|
|
|
if env['CUSTOM_LDFLAGS']:
|
|
|
|
linkflags = '%s %s' % (env['CUSTOM_LDFLAGS'], mapnik_lib_link_flag)
|
|
|
|
else:
|
|
|
|
linkflags = mapnik_lib_link_flag
|
2010-07-19 21:48:34 +02:00
|
|
|
|
2011-08-11 21:14:00 +02:00
|
|
|
if env['LINKING'] == 'static':
|
2011-08-11 23:11:11 +02:00
|
|
|
mapnik = lib_env.StaticLibrary('mapnik2', source, LINKFLAGS=linkflags)
|
2011-08-11 21:14:00 +02:00
|
|
|
else:
|
2011-08-11 23:11:11 +02:00
|
|
|
mapnik = lib_env.SharedLibrary('mapnik2', source, LINKFLAGS=linkflags)
|
|
|
|
|
|
|
|
# cache libraries value for other builds to use
|
2011-08-12 22:01:09 +02:00
|
|
|
env['LIBMAPNIK_LIBS'] = copy(lib_env['LIBS'])
|
2010-07-18 22:39:05 +02:00
|
|
|
|
2008-01-03 13:16:27 +01:00
|
|
|
if env['PLATFORM'] != 'Darwin':
|
|
|
|
# Symlink command, only works if both files are in same directory
|
|
|
|
def symlink(env, target, source):
|
|
|
|
trgt = str(target[0])
|
|
|
|
src = str(source[0])
|
|
|
|
|
|
|
|
if os.path.islink(trgt) or os.path.exists(trgt):
|
|
|
|
os.remove(trgt)
|
|
|
|
os.symlink(os.path.basename(src), trgt)
|
|
|
|
|
|
|
|
major, minor, micro = ABI_VERSION
|
|
|
|
|
|
|
|
soFile = "%s.%d.%d.%d" % (os.path.basename(str(mapnik[0])), major, minor, micro)
|
2011-08-12 22:01:09 +02:00
|
|
|
target = os.path.join(env['MAPNIK_LIB_BASE_DEST'], soFile)
|
2010-07-18 22:39:05 +02:00
|
|
|
|
|
|
|
if 'uninstall' not in COMMAND_LINE_TARGETS:
|
2010-08-26 03:21:47 +02:00
|
|
|
result = env.InstallAs(target=target, source=mapnik)
|
|
|
|
env.Alias(target='install', source=result)
|
|
|
|
if result:
|
|
|
|
env.AddPostAction(result, ldconfig)
|
|
|
|
|
2010-07-18 22:39:05 +02:00
|
|
|
|
2008-01-03 13:16:27 +01:00
|
|
|
# Install symlinks
|
2011-08-12 22:01:09 +02:00
|
|
|
target1 = os.path.join(env['MAPNIK_LIB_BASE_DEST'], "%s.%d.%d" % (os.path.basename(str(mapnik[0])),major, minor))
|
|
|
|
target2 = os.path.join(env['MAPNIK_LIB_BASE_DEST'], os.path.basename(str(mapnik[0])))
|
2010-07-18 22:39:05 +02:00
|
|
|
if 'uninstall' not in COMMAND_LINE_TARGETS:
|
|
|
|
if 'install' in COMMAND_LINE_TARGETS:
|
|
|
|
link1 = env.Command(target1, target, symlink)
|
|
|
|
env.Alias(target='install', source=link1)
|
|
|
|
link2 = env.Command(target2, target1, symlink)
|
|
|
|
env.Alias(target='install', source=link2)
|
|
|
|
# delete in reverse order..
|
|
|
|
env['create_uninstall_target'](env, target2)
|
|
|
|
env['create_uninstall_target'](env, target1)
|
|
|
|
env['create_uninstall_target'](env, target)
|
|
|
|
|
2008-01-03 13:16:27 +01:00
|
|
|
else:
|
2011-08-12 22:01:09 +02:00
|
|
|
target_path = env['MAPNIK_LIB_BASE_DEST']
|
2010-07-18 22:39:05 +02:00
|
|
|
if 'uninstall' not in COMMAND_LINE_TARGETS:
|
2010-08-26 03:21:47 +02:00
|
|
|
result = env.Install(target_path, mapnik)
|
|
|
|
env.Alias(target='install', source=result)
|
|
|
|
|
2010-07-18 22:39:05 +02:00
|
|
|
env['create_uninstall_target'](env, os.path.join(target_path,mapnik_libname))
|
2005-06-14 17:06:59 +02:00
|
|
|
|
2006-10-27 19:29:39 +02:00
|
|
|
includes = glob.glob('../include/mapnik/*.hpp')
|
2011-02-25 22:00:05 +01:00
|
|
|
svg_includes = glob.glob('../include/mapnik/svg/*.hpp')
|
|
|
|
wkt_includes = glob.glob('../include/mapnik/wkt/*.hpp')
|
2011-04-26 23:44:52 +02:00
|
|
|
grid_includes = glob.glob('../include/mapnik/grid/*.hpp')
|
2010-07-18 22:39:05 +02:00
|
|
|
|
2011-08-12 22:01:09 +02:00
|
|
|
inc_target = os.path.normpath(env['INSTALL_PREFIX']+'/include/mapnik')
|
|
|
|
svg_inc_target = os.path.normpath(env['INSTALL_PREFIX']+'/include/mapnik/svg')
|
|
|
|
wkt_inc_target = os.path.normpath(env['INSTALL_PREFIX']+'/include/mapnik/wkt')
|
|
|
|
grid_inc_target = os.path.normpath(env['INSTALL_PREFIX']+'/include/mapnik/grid')
|
2011-02-25 22:00:05 +01:00
|
|
|
|
2010-07-18 22:39:05 +02:00
|
|
|
if 'uninstall' not in COMMAND_LINE_TARGETS:
|
|
|
|
env.Alias(target='install', source=env.Install(inc_target, includes))
|
2011-02-25 22:00:05 +01:00
|
|
|
env.Alias(target='install', source=env.Install(svg_inc_target, svg_includes))
|
|
|
|
env.Alias(target='install', source=env.Install(wkt_inc_target, wkt_includes))
|
2011-04-26 23:44:52 +02:00
|
|
|
env.Alias(target='install', source=env.Install(grid_inc_target, grid_includes))
|
2011-02-25 22:00:05 +01:00
|
|
|
|
2010-07-19 21:48:34 +02:00
|
|
|
env['create_uninstall_target'](env, inc_target)
|
2011-02-25 22:00:05 +01:00
|
|
|
env['create_uninstall_target'](env, svg_inc_target)
|
2011-02-28 14:17:46 +01:00
|
|
|
env['create_uninstall_target'](env, wkt_inc_target)
|
2011-04-26 23:44:52 +02:00
|
|
|
env['create_uninstall_target'](env, grid_inc_target)
|