more fully disable the svg_renderer backend - refs #1438

This commit is contained in:
Dane Springmeyer 2012-08-23 10:10:18 -07:00
parent 4e2d2c67b0
commit 05fdb5424b
2 changed files with 25 additions and 23 deletions

View file

@ -325,7 +325,7 @@ opts.AddVariables(
BoolVariable('RENDERING_STATS', 'Output rendering statistics during style processing', 'False'),
BoolVariable('SVG_RENDERER', 'build support for native svg renderer', 'False'),
#BoolVariable('SVG_RENDERER', 'build support for native svg renderer', 'False'),
# Variables for optional dependencies
('GEOS_CONFIG', 'The path to the geos-config executable.', 'geos-config'),
@ -426,7 +426,7 @@ pickle_store = [# Scons internal variables
'CAIROMM_LIBPATHS',
'CAIROMM_LINKFLAGS',
'CAIROMM_CPPPATHS',
'SVG_RENDERER',
#'SVG_RENDERER',
'SQLITE_LINKFLAGS',
'BOOST_LIB_VERSION_FROM_HEADER'
]
@ -1740,7 +1740,8 @@ if not HELP_REQUESTED:
# not ready for release
SConscript('tests/cpp_tests/build.py')
# not ready for release
# not currently maintained
# https://github.com/mapnik/mapnik/issues/1438
#if env['SVG_RENDERER']:
# SConscript('tests/cpp_tests/svg_renderer_tests/build.py')

View file

@ -280,26 +280,27 @@ source += Split(
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_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')
libmapnik_cxxflags.append('-DSVG_RENDERER')
# https://github.com/mapnik/mapnik/issues/1438
#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_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')
# libmapnik_cxxflags.append('-DSVG_RENDERER')
if env['XMLPARSER'] == 'libxml2' and env['HAS_LIBXML2']:
source += Split(