reduce the size of plugin libraries by hiding unneeded symbols

This commit is contained in:
Dane Springmeyer 2011-11-11 15:37:10 -08:00
parent 85b938806b
commit 1d881af35a
13 changed files with 29 additions and 12 deletions

View file

@ -1592,6 +1592,11 @@ if not HELP_REQUESTED:
# export env so it is available in build.py files
Export('env')
plugin_base = env.Clone()
plugin_base.Append(CXXFLAGS='-fvisibility=hidden')
plugin_base.Append(CXXFLAGS='-fvisibility-inlines-hidden')
Export('plugin_base')
# clear the '_CPPDEFFLAGS' variable
# for unknown reasons this variable puts -DNone

View file

@ -1,12 +1,13 @@
#!/usr/bin/env python
import os
Import ('plugin_base')
Import ('env')
PLUGIN_NAME = 'csv'
install_dest = env['MAPNIK_INPUT_PLUGINS_DEST']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
plugin_sources = Split(
"""

View file

@ -19,11 +19,12 @@
#
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
gdal_src = Split(
"""

View file

@ -20,11 +20,12 @@
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
geos_src = Split(
"""

View file

@ -19,11 +19,12 @@
#
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
kismet_src = Split(
"""

View file

@ -19,11 +19,12 @@
#
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
occi_src = Split(
"""

View file

@ -20,11 +20,12 @@
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
ogr_src = Split(
"""

View file

@ -19,11 +19,12 @@
#
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
osm_src = Split(
"""

View file

@ -19,11 +19,12 @@
#
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
postgis_src = Split(
"""

View file

@ -19,11 +19,12 @@
#
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
raster_src = Split(
"""

View file

@ -19,11 +19,12 @@
#
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
rasterlite_src = Split(
"""

View file

@ -20,11 +20,12 @@
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
shape_src = Split(
"""

View file

@ -19,11 +19,12 @@
#
# $Id$
Import ('plugin_base')
Import ('env')
prefix = env['PREFIX']
plugin_env = env.Clone()
plugin_env = plugin_base.Clone()
sqlite_src = Split(
"""