From cea31234fa048be4a9fde68730ebffde1743a9c7 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 1 Nov 2012 10:07:29 -0700 Subject: [PATCH] allow building svg_renderer again - refs #1438 --- SConstruct | 8 ++++---- src/build.py | 40 ++++++++++++++++++++-------------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/SConstruct b/SConstruct index 84abe9d42..45a3e5560 100644 --- a/SConstruct +++ b/SConstruct @@ -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' ] @@ -1745,8 +1745,8 @@ if not HELP_REQUESTED: # not currently maintained # https://github.com/mapnik/mapnik/issues/1438 - #if env['SVG_RENDERER']: - # SConscript('tests/cpp_tests/svg_renderer_tests/build.py') + if env['SVG_RENDERER']: + SConscript('tests/cpp_tests/svg_renderer_tests/build.py') # install pkg-config script and mapnik-config script SConscript('utils/mapnik-config/build.py') diff --git a/src/build.py b/src/build.py index 6069107e6..8d8349427 100644 --- a/src/build.py +++ b/src/build.py @@ -286,26 +286,26 @@ source += Split( """) # https://github.com/mapnik/mapnik/issues/1438 -#if env['SVG_RENDERER']: # svg backend -# source += Split( -# """ -# svg/output/svg_renderer.cpp -# svg/output/svg_generator.cpp -# svg/output/svg_output_attributes.cpp -# svg/output/process_symbolizers.cpp -# svg/output/process_building_symbolizer.cpp -# svg/output/process_line_pattern_symbolizer.cpp -# svg/output/process_line_symbolizer.cpp -# svg/output/process_markers_symbolizer.cpp -# svg/output/process_point_symbolizer.cpp -# svg/output/process_polygon_pattern_symbolizer.cpp -# svg/output/process_polygon_symbolizer.cpp -# svg/output/process_raster_symbolizer.cpp -# svg/output/process_shield_symbolizer.cpp -# svg/output/process_text_symbolizer.cpp -# """) -# lib_env.Append(CXXFLAGS = '-DSVG_RENDERER') -# libmapnik_cxxflags.append('-DSVG_RENDERER') +if env['SVG_RENDERER']: # svg backend + source += Split( + """ + svg/output/svg_renderer.cpp + svg/output/svg_generator.cpp + svg/output/svg_output_attributes.cpp + svg/output/process_symbolizers.cpp + svg/output/process_building_symbolizer.cpp + svg/output/process_line_pattern_symbolizer.cpp + svg/output/process_line_symbolizer.cpp + svg/output/process_markers_symbolizer.cpp + svg/output/process_point_symbolizer.cpp + svg/output/process_polygon_pattern_symbolizer.cpp + svg/output/process_polygon_symbolizer.cpp + svg/output/process_raster_symbolizer.cpp + svg/output/process_shield_symbolizer.cpp + svg/output/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(