Skip to content

Commit 734aed3

Browse files
committed
ci: Set ANDROID_API_VERSION
For building Qt, ANDROID_API_VERSION must be set to the target SDK. Qt 5.12.10 needs at least android-24 (QTBUG-89616). Google Play requires at least android-29 (as of Nov 2, 2020).
1 parent bb55d13 commit 734aed3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

ci/azure-pipelines.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
SUPERBUILD_INSTALL_DIR: $(HOME)/superbuild
112112
TARGET: armv7a-linux-androideabi
113113
TARGET_SUFFIX: -$(TARGET)
114+
ANDROID_API_VERSION: android-29
114115
pool:
115116
vmImage: '$(IMAGE_NAME)'
116117
steps:
@@ -138,6 +139,7 @@ jobs:
138139
SUPERBUILD_INSTALL_DIR: $(HOME)/superbuild
139140
TARGET: aarch64-linux-android
140141
TARGET_SUFFIX: -$(TARGET)
142+
ANDROID_API_VERSION: android-29
141143
pool:
142144
vmImage: '$(IMAGE_NAME)'
143145
steps:
@@ -165,6 +167,7 @@ jobs:
165167
SUPERBUILD_INSTALL_DIR: $(HOME)/superbuild
166168
TARGET: i686-linux-android
167169
TARGET_SUFFIX: -$(TARGET)
170+
ANDROID_API_VERSION: android-29
168171
pool:
169172
vmImage: '$(IMAGE_NAME)'
170173
steps:
@@ -192,6 +195,7 @@ jobs:
192195
SUPERBUILD_INSTALL_DIR: $(HOME)/superbuild
193196
TARGET: x86_64-linux-android
194197
TARGET_SUFFIX: -$(TARGET)
198+
ANDROID_API_VERSION: android-29
195199
pool:
196200
vmImage: '$(IMAGE_NAME)'
197201
steps:

qt-5.12.10.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ set(openorienteering_version ${version}-qtbase-5.12.10-1)
3434

3535
option(USE_SYSTEM_QT "Use the system Qt if possible" ON)
3636

37+
# Note for Android
38+
# Set environment variable ANDROID_API_VERSION to specify the target API level.
39+
# Building Qt 5.12.10 needs "android-24" or higher.
40+
# Cf. https://bugreports.qt.io/browse/QTBUG-89616
41+
3742
string(CONFIGURE [[
3843
if("${module}" MATCHES "Android" AND NOT ANDROID)
3944
set(BUILD_CONDITION 0)

0 commit comments

Comments
 (0)