Fix binary stripping in APKs with Qt 5.15.10

This brings APK sizes back to what they used to be, instead of the 3x-5x
bloated version binary factory produces since the 5.15.10 update.
This commit is contained in:
Volker Krause 2023-07-08 09:27:11 +02:00
parent a7a8f76244
commit 9ecbc599f4
2 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,9 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set(KF_MIN_VERSION "5.102.0") set(KF_MIN_VERSION "5.102.0")
set(QT_MIN_VERSION "5.15.2") set(QT_MIN_VERSION "5.15.2")
if (ANDROID)
set(QT_MIN_VERSION 5.15.10) # due to 5.15.10 changing NDK versioning
endif()
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE) find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)

View File

@ -48,6 +48,7 @@ android {
compileSdkVersion androidCompileSdkVersion.toInteger() compileSdkVersion androidCompileSdkVersion.toInteger()
buildToolsVersion androidBuildToolsVersion buildToolsVersion androidBuildToolsVersion
ndkVersion androidNdkVersion
sourceSets { sourceSets {
main { main {