Android: Enable configuring for a single abi architecture
Fixes: QTBUG-80938 Pick-to: 5.15 Change-Id: Id87202e6b2520b18c6b06b71675157f588a28bd6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
c92528b6cc
commit
0ef46b41d8
@ -8,6 +8,9 @@ build_pass:armeabi-v7a {
|
||||
QT_ARCH = x86
|
||||
} else:build_pass:x86_64 {
|
||||
QT_ARCH = x86_64
|
||||
} else:count(ALL_ANDROID_ABIS, 1) {
|
||||
QT_ARCH = $$ALL_ANDROID_ABIS
|
||||
CONFIG += singleAndroidAbi $$QT_ARCH
|
||||
} else {
|
||||
# default architecture
|
||||
QT_ARCH = arm64-v8a
|
||||
|
@ -1,6 +1,6 @@
|
||||
load(resolve_config)
|
||||
|
||||
!equals(TEMPLATE, aux):!host_build:!single_arch:!java:android {
|
||||
!equals(TEMPLATE, aux):!host_build:!single_arch:!java:!singleAndroidAbi:android {
|
||||
isEmpty(ANDROID_ABIS): ANDROID_ABIS = $$ALL_ANDROID_ABIS
|
||||
|
||||
ALL_ABIS = $$join(ANDROID_ABIS, _and_)
|
||||
|
@ -15,8 +15,7 @@
|
||||
|
||||
ANDROID_DEPENDS_DIR = $$MODULE_BASE_OUTDIR/lib/
|
||||
DEPENDENCY_FILE = $$ANDROID_DEPENDS_DIR$$TARGET-android-dependencies.xml
|
||||
|
||||
build_pass:!isEmpty(QT_ARCH): {
|
||||
build_pass|singleAndroidAbi:!isEmpty(QT_ARCH): {
|
||||
!isEmpty(MODULE_PLUGIN_TYPES) {
|
||||
for(PLUGIN_TYPE, MODULE_PLUGIN_TYPES) {
|
||||
ANDROID_BUNDLED_FILES += "plugins/$$PLUGIN_TYPE"
|
||||
|
@ -58,7 +58,7 @@ win32|CONFIG(static, static|shared) {
|
||||
"QMAKE_DEPENDS_$${ucmodule}_LD =$$join(LD_USES, " ", " ")" \
|
||||
"QMAKE_INCDIR_$${ucmodule} = $$val_escape(MODULE_INCLUDEPATH)" \
|
||||
"QMAKE_DEFINES_$${ucmodule} = $$val_escape(MODULE_DEFINES)"
|
||||
android {
|
||||
!singleAndroidAbi:android {
|
||||
MODULE_PRI_CONT += "QMAKE_LIBS_$${ucmodule} ="
|
||||
} else: if(msvc|qtConfig(debug_and_release)): {
|
||||
win32: \
|
||||
|
@ -107,7 +107,7 @@ qtConfig(ssl) {
|
||||
|
||||
qtConfig(openssl-linked): {
|
||||
android {
|
||||
build_pass: LIBS_PRIVATE += -lssl_$${QT_ARCH} -lcrypto_$${QT_ARCH}
|
||||
build_pass|singleAndroidAbi: LIBS_PRIVATE += -lssl_$${QT_ARCH} -lcrypto_$${QT_ARCH}
|
||||
} else: QMAKE_USE_FOR_PRIVATE += openssl
|
||||
} else: \
|
||||
QMAKE_USE_FOR_PRIVATE += openssl/nolink
|
||||
|
Loading…
Reference in New Issue
Block a user