From e8029434696f4979f33e537352870dee3dd9aa9b Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 22 Feb 2013 16:55:02 -0800 Subject: [PATCH] only build tiff/png readers if support is requested --- src/build.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/build.py b/src/build.py index be658b7ab..e19e485ba 100644 --- a/src/build.py +++ b/src/build.py @@ -151,7 +151,6 @@ source = Split( path_expression_grammar.cpp placement_finder.cpp plugin.cpp - png_reader.cpp point_symbolizer.cpp polygon_pattern_symbolizer.cpp polygon_symbolizer.cpp @@ -159,7 +158,6 @@ source = Split( save_map.cpp shield_symbolizer.cpp text_symbolizer.cpp - tiff_reader.cpp wkb.cpp projection.cpp proj_transform.cpp @@ -222,6 +220,18 @@ if env['JPEG']: jpeg_reader.cpp """) +if env['TIFF']: + source += Split( + """ + tiff_reader.cpp + """) + +if env['PNG']: + source += Split( + """ + png_reader.cpp + """) + # agg backend source += Split( """