Merge pull request #4377 from mathisloge/fix/python-mapnik-findings

move datasource_plugin into mapnik target
This commit is contained in:
Artem Pavlenko 2023-01-24 14:21:17 +00:00 committed by GitHub
commit fb97fb10f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1 additions and 28 deletions

View file

@ -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')

View file

@ -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)

View file

@ -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}")

View file

@ -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
) )

View file

@ -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}
) )

View file

@ -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
) )

View file

@ -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
) )

View file

@ -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}
) )

View file

@ -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
) )

View file

@ -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
) )

View file

@ -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
) )

View file

@ -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
) )

View file

@ -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
) )

View file

@ -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
) )

View file

@ -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