Skip to content

Commit

Permalink
ci: Set ANDROID_API_VERSION
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
dg0yt committed Jan 9, 2021
1 parent bb55d13 commit 734aed3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ jobs:
SUPERBUILD_INSTALL_DIR: $(HOME)/superbuild
TARGET: armv7a-linux-androideabi
TARGET_SUFFIX: -$(TARGET)
ANDROID_API_VERSION: android-29
pool:
vmImage: '$(IMAGE_NAME)'
steps:
Expand Down Expand Up @@ -138,6 +139,7 @@ jobs:
SUPERBUILD_INSTALL_DIR: $(HOME)/superbuild
TARGET: aarch64-linux-android
TARGET_SUFFIX: -$(TARGET)
ANDROID_API_VERSION: android-29
pool:
vmImage: '$(IMAGE_NAME)'
steps:
Expand Down Expand Up @@ -165,6 +167,7 @@ jobs:
SUPERBUILD_INSTALL_DIR: $(HOME)/superbuild
TARGET: i686-linux-android
TARGET_SUFFIX: -$(TARGET)
ANDROID_API_VERSION: android-29
pool:
vmImage: '$(IMAGE_NAME)'
steps:
Expand Down Expand Up @@ -192,6 +195,7 @@ jobs:
SUPERBUILD_INSTALL_DIR: $(HOME)/superbuild
TARGET: x86_64-linux-android
TARGET_SUFFIX: -$(TARGET)
ANDROID_API_VERSION: android-29
pool:
vmImage: '$(IMAGE_NAME)'
steps:
Expand Down
5 changes: 5 additions & 0 deletions qt-5.12.10.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ set(openorienteering_version ${version}-qtbase-5.12.10-1)

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

# Note for Android
# Set environment variable ANDROID_API_VERSION to specify the target API level.
# Building Qt 5.12.10 needs "android-24" or higher.
# Cf. https://bugreports.qt.io/browse/QTBUG-89616

string(CONFIGURE [[
if("${module}" MATCHES "Android" AND NOT ANDROID)
set(BUILD_CONDITION 0)
Expand Down

0 comments on commit 734aed3

Please sign in to comment.