Merge pull request #4377 from mathisloge/fix/python-mapnik-findings
move datasource_plugin into mapnik target
This commit is contained in:
commit
fb97fb10f7
16 changed files with 1 additions and 28 deletions
|
@ -1879,7 +1879,6 @@ if not preconfigured:
|
||||||
env.Prepend(CPPPATH = '#deps/mapbox/geometry/include')
|
env.Prepend(CPPPATH = '#deps/mapbox/geometry/include')
|
||||||
env.Prepend(CPPPATH = '#deps/mapbox/protozero/include')
|
env.Prepend(CPPPATH = '#deps/mapbox/protozero/include')
|
||||||
env.Prepend(CPPPATH = '#deps/mapbox/polylabel/include')
|
env.Prepend(CPPPATH = '#deps/mapbox/polylabel/include')
|
||||||
env.Prepend(CPPPATH = '#plugins/input/base/include')
|
|
||||||
# prepend deps dir for auxillary headers
|
# prepend deps dir for auxillary headers
|
||||||
env.Prepend(CPPPATH = '#deps')
|
env.Prepend(CPPPATH = '#deps')
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,6 @@ macro(add_plugin_target plugin_target output_name)
|
||||||
mapnik_install_plugin(${plugin_target})
|
mapnik_install_plugin(${plugin_target})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
|
||||||
add_subdirectory(base)
|
|
||||||
|
|
||||||
# add a list with all build plugins so the copy dependencies command can wait for all build events
|
# add a list with all build plugins so the copy dependencies command can wait for all build events
|
||||||
set(m_build_plugins "")
|
set(m_build_plugins "")
|
||||||
if(USE_PLUGIN_INPUT_CSV)
|
if(USE_PLUGIN_INPUT_CSV)
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
add_library(datasource-base INTERFACE)
|
|
||||||
add_library(mapnik::datasource-base ALIAS datasource-base)
|
|
||||||
|
|
||||||
|
|
||||||
target_include_directories(datasource-base INTERFACE
|
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
||||||
$<INSTALL_INTERFACE:include>
|
|
||||||
)
|
|
||||||
target_link_libraries(datasource-base INTERFACE mapnik::core)
|
|
||||||
|
|
||||||
mapnik_install(datasource-base)
|
|
||||||
install(DIRECTORY include/ DESTINATION "${MAPNIK_INCLUDE_DIR}")
|
|
|
@ -11,5 +11,4 @@ target_link_libraries(input-csv ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::wkt
|
mapnik::wkt
|
||||||
mapnik::json
|
mapnik::json
|
||||||
mapnik::datasource-base
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,6 +8,5 @@ target_sources(input-gdal ${_plugin_visibility}
|
||||||
target_include_directories(input-gdal ${_plugin_visibility} ${GDAL_INCLUDE_DIRS})
|
target_include_directories(input-gdal ${_plugin_visibility} ${GDAL_INCLUDE_DIRS})
|
||||||
target_link_libraries(input-gdal ${_plugin_visibility}
|
target_link_libraries(input-gdal ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::datasource-base
|
|
||||||
${GDAL_LIBRARIES}
|
${GDAL_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,5 +6,4 @@ target_sources(input-geobuf ${_plugin_visibility}
|
||||||
)
|
)
|
||||||
target_link_libraries(input-geobuf ${_plugin_visibility}
|
target_link_libraries(input-geobuf ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::datasource-base
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,5 +8,4 @@ target_sources(input-geojson ${_plugin_visibility}
|
||||||
target_link_libraries(input-geojson ${_plugin_visibility}
|
target_link_libraries(input-geojson ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::json
|
mapnik::json
|
||||||
mapnik::datasource-base
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,6 +10,5 @@ target_sources(input-ogr ${_plugin_visibility}
|
||||||
target_include_directories(input-ogr ${_plugin_visibility} ${GDAL_INCLUDE_DIRS})
|
target_include_directories(input-ogr ${_plugin_visibility} ${GDAL_INCLUDE_DIRS})
|
||||||
target_link_libraries(input-ogr ${_plugin_visibility}
|
target_link_libraries(input-ogr ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::datasource-base
|
|
||||||
${GDAL_LIBRARIES}
|
${GDAL_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,6 +8,5 @@ target_sources(input-pgraster ${_plugin_visibility}
|
||||||
)
|
)
|
||||||
target_link_libraries(input-pgraster ${_plugin_visibility}
|
target_link_libraries(input-pgraster ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::datasource-base
|
|
||||||
PostgreSQL::PostgreSQL
|
PostgreSQL::PostgreSQL
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,6 +7,5 @@ target_sources(input-postgis ${_plugin_visibility}
|
||||||
)
|
)
|
||||||
target_link_libraries(input-postgis ${_plugin_visibility}
|
target_link_libraries(input-postgis ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::datasource-base
|
|
||||||
PostgreSQL::PostgreSQL
|
PostgreSQL::PostgreSQL
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,5 +6,4 @@ target_sources(input-raster ${_plugin_visibility}
|
||||||
)
|
)
|
||||||
target_link_libraries(input-raster ${_plugin_visibility}
|
target_link_libraries(input-raster ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::datasource-base
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,5 +9,4 @@ target_sources(input-shape ${_plugin_visibility}
|
||||||
)
|
)
|
||||||
target_link_libraries(input-shape ${_plugin_visibility}
|
target_link_libraries(input-shape ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::datasource-base
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,6 +7,5 @@ target_sources(input-sqlite ${_plugin_visibility}
|
||||||
)
|
)
|
||||||
target_link_libraries(input-sqlite ${_plugin_visibility}
|
target_link_libraries(input-sqlite ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::datasource-base
|
|
||||||
SQLite::SQLite3
|
SQLite::SQLite3
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,5 +6,4 @@ target_sources(input-topojson ${_plugin_visibility}
|
||||||
target_link_libraries(input-topojson ${_plugin_visibility}
|
target_link_libraries(input-topojson ${_plugin_visibility}
|
||||||
mapnik::mapnik
|
mapnik::mapnik
|
||||||
mapnik::json
|
mapnik::json
|
||||||
mapnik::datasource-base
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,7 +6,7 @@ if(BUILD_SHARED_LIBS)
|
||||||
target_compile_definitions(mapnik PRIVATE MAPNIK_EXPORTS)
|
target_compile_definitions(mapnik PRIVATE MAPNIK_EXPORTS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(mapnik PUBLIC mapnik::core mapnik::datasource-base)
|
target_link_libraries(mapnik PUBLIC mapnik::core)
|
||||||
target_link_libraries(mapnik PRIVATE
|
target_link_libraries(mapnik PRIVATE
|
||||||
mapnik::agg
|
mapnik::agg
|
||||||
# expr: if(BUILD_SHARED_PLUGINS == OFF && <target> is build) then add link target
|
# expr: if(BUILD_SHARED_PLUGINS == OFF && <target> is build) then add link target
|
||||||
|
|
Loading…
Reference in a new issue