do not compile features if they are not set
This commit is contained in:
parent
f447cad781
commit
9213f76d49
1 changed files with 11 additions and 4 deletions
|
@ -47,7 +47,6 @@ set(MAPNIK_SOURCES
|
||||||
image_view_any.cpp
|
image_view_any.cpp
|
||||||
image_view.cpp
|
image_view.cpp
|
||||||
image.cpp
|
image.cpp
|
||||||
jpeg_reader.cpp
|
|
||||||
layer.cpp
|
layer.cpp
|
||||||
load_map.cpp
|
load_map.cpp
|
||||||
map.cpp
|
map.cpp
|
||||||
|
@ -62,7 +61,6 @@ set(MAPNIK_SOURCES
|
||||||
parse_transform.cpp
|
parse_transform.cpp
|
||||||
path_expression_grammar_x3.cpp
|
path_expression_grammar_x3.cpp
|
||||||
plugin.cpp
|
plugin.cpp
|
||||||
png_reader.cpp
|
|
||||||
proj_transform.cpp
|
proj_transform.cpp
|
||||||
projection.cpp
|
projection.cpp
|
||||||
raster_colorizer.cpp
|
raster_colorizer.cpp
|
||||||
|
@ -74,8 +72,7 @@ set(MAPNIK_SOURCES
|
||||||
simplify.cpp
|
simplify.cpp
|
||||||
symbolizer_enumerations.cpp
|
symbolizer_enumerations.cpp
|
||||||
symbolizer_keys.cpp
|
symbolizer_keys.cpp
|
||||||
symbolizer.cpp
|
symbolizer.cpp
|
||||||
tiff_reader.cpp
|
|
||||||
transform_expression_grammar_x3.cpp
|
transform_expression_grammar_x3.cpp
|
||||||
transform_expression.cpp
|
transform_expression.cpp
|
||||||
twkb.cpp
|
twkb.cpp
|
||||||
|
@ -90,6 +87,16 @@ set(MAPNIK_SOURCES
|
||||||
)
|
)
|
||||||
set(COMPILE_SRC ${MAPNIK_SOURCES})
|
set(COMPILE_SRC ${MAPNIK_SOURCES})
|
||||||
|
|
||||||
|
if(NOT USE_JPEG)
|
||||||
|
list(APPEND COMPILE_SRC jpeg_reader.cpp)
|
||||||
|
endif()
|
||||||
|
if(NOT USE_PNG)
|
||||||
|
list(APPEND COMPILE_SRC png_reader.cpp)
|
||||||
|
endif()
|
||||||
|
if(NOT USE_TIFF)
|
||||||
|
list(APPEND COMPILE_SRC tiff_reader.cpp)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(AGG_COMPILE_SRC
|
set(AGG_COMPILE_SRC
|
||||||
../deps/agg/src/agg_arc.cpp
|
../deps/agg/src/agg_arc.cpp
|
||||||
../deps/agg/src/agg_arrowhead.cpp
|
../deps/agg/src/agg_arrowhead.cpp
|
||||||
|
|
Loading…
Reference in a new issue