Skip to content

Commit

Permalink
Update to latest maplibre-native (cd6a0ab1, April 30)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed May 4, 2024
1 parent ef40b2e commit acdf8fe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion external/maplibre-native
Submodule maplibre-native updated 1753 files
16 changes: 8 additions & 8 deletions external/maplibre-native-qt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ target_link_libraries(mbgl-core INTERFACE ${ZLIB_LIBRARIES})
if (MSVC)
# Produce PDB file for debug
target_compile_options(mbgl-core PRIVATE "$<$<CONFIG:Release>:/Zi>")
target_compile_options(Core PRIVATE "$<$<CONFIG:Release>:/Zi>")
target_link_options(Core PRIVATE "$<$<CONFIG:Release>:/DEBUG>")
target_link_options(Core PRIVATE "$<$<CONFIG:Release>:/OPT:REF>")
target_link_options(Core PRIVATE "$<$<CONFIG:Release>:/OPT:ICF>")
target_compile_options(MLNQtCore PRIVATE "$<$<CONFIG:Release>:/Zi>")
target_link_options(MLNQtCore PRIVATE "$<$<CONFIG:Release>:/DEBUG>")
target_link_options(MLNQtCore PRIVATE "$<$<CONFIG:Release>:/OPT:REF>")
target_link_options(MLNQtCore PRIVATE "$<$<CONFIG:Release>:/OPT:ICF>")
else()
target_compile_options(mbgl-core PRIVATE "$<$<CONFIG:Release>:-g>")
target_compile_options(Core PRIVATE "$<$<CONFIG:Release>:-g>")
target_compile_options(MLNQtCore PRIVATE "$<$<CONFIG:Release>:-g>")
endif()

set(MLN_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/maplibre-native/include
Expand All @@ -30,13 +30,13 @@ set(MLN_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/maplibre-native/include

set_target_properties(test_mln_core PROPERTIES EXCLUDE_FROM_ALL True)
set_target_properties(test_mln_widgets PROPERTIES EXCLUDE_FROM_ALL True)
set_target_properties(Widgets PROPERTIES EXCLUDE_FROM_ALL True)
set_target_properties(MLNQtWidgets PROPERTIES EXCLUDE_FROM_ALL True)

set_target_properties(test_mln_core PROPERTIES FOLDER mln/exclude)
set_target_properties(test_mln_widgets PROPERTIES FOLDER mln/exclude)
set_target_properties(Widgets PROPERTIES FOLDER mln/exclude)
set_target_properties(MLNQtWidgets PROPERTIES FOLDER mln/exclude)

set_target_properties(Core PROPERTIES FOLDER mln)
set_target_properties(MLNQtCore PROPERTIES FOLDER mln)
set_target_properties(mbgl-core PROPERTIES FOLDER mln)
set_target_properties(mbgl-vendor-csscolorparser PROPERTIES FOLDER mln)
set_target_properties(mbgl-vendor-nunicode PROPERTIES FOLDER mln)
Expand Down
6 changes: 3 additions & 3 deletions scwx-qt/scwx-qt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -609,11 +609,11 @@ target_link_libraries(supercell-wx PRIVATE scwx-qt
wxdata)

# Set DT_RUNPATH for Linux targets
set_target_properties(Core PROPERTIES INSTALL_RPATH "\$ORIGIN/../lib") # QMapLibre::Core
set_target_properties(MLNQtCore PROPERTIES INSTALL_RPATH "\$ORIGIN/../lib") # QMapLibre::Core
set_target_properties(supercell-wx PROPERTIES INSTALL_RPATH "\$ORIGIN/../lib")

install(TARGETS supercell-wx
Core # QMapLibre::Core
MLNQtCore # QMapLibre::Core
RUNTIME_DEPENDENCIES
PRE_EXCLUDE_REGEXES "api-ms-" "ext-ms-" "qt6"
POST_EXCLUDE_REGEXES ".*system32/.*\\.dll"
Expand All @@ -626,7 +626,7 @@ install(TARGETS supercell-wx

# NO_TRANSLATIONS is needed for Qt 6.5.0 (will be fixed in 6.5.1)
# https://bugreports.qt.io/browse/QTBUG-112204
qt_generate_deploy_app_script(TARGET Core # QMapLibre::Core
qt_generate_deploy_app_script(TARGET MLNQtCore # QMapLibre::Core
OUTPUT_SCRIPT deploy_script_qmaplibre_core
NO_TRANSLATIONS
NO_UNSUPPORTED_PLATFORM_ERROR)
Expand Down

0 comments on commit acdf8fe

Please sign in to comment.