Skip to content

Commit

Permalink
Fix static and Android releases (maplibre#148)
Browse files Browse the repository at this point in the history
* Fix Android release

* Fix static build installation issues
  • Loading branch information
ntadej authored Jul 27, 2024
1 parent 9120c8a commit d9cc9eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
needs: build
strategy:
matrix:
qt_version: [6.5.3, 6.6.3]
qt_version: [6.5.3, 6.6.3, 6.7.2]

steps:
- name: Download artifacts for x86
Expand Down
21 changes: 11 additions & 10 deletions src/location/macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ function(qmaplibre_location_setup_plugins target)
set(_targetDestination "${_targetDestination}/")
endif()

get_target_property(_targetTypeCore QMapLibre::Core TYPE)
if(_targetTypeCore STREQUAL STATIC_LIBRARY)
target_link_libraries(
${target}
PRIVATE
QMapLibre::PluginGeoServices
QMapLibre::PluginQml
)
endif()

set_target_properties(
${target}
PROPERTIES
Expand All @@ -46,6 +36,17 @@ function(qmaplibre_location_setup_plugins target)
list(REMOVE_DUPLICATES _importPathCache)
set(QML_IMPORT_PATH ${_importPathCache} CACHE STRING "QML import path for QtCreator" FORCE)

get_target_property(_targetTypeCore QMapLibre::Core TYPE)
if(_targetTypeCore STREQUAL STATIC_LIBRARY)
target_link_libraries(
${target}
PRIVATE
QMapLibre::PluginGeoServices
QMapLibre::PluginQml
)
return()
endif()

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
file(
COPY "${_ImportedLocationGeoServices}"
Expand Down

0 comments on commit d9cc9eb

Please sign in to comment.