Qt for Android CMake Configuration

This page lists information regarding CMake and Qt for Android platform support.

Variables affecting the build process

This is a list of CMake variables or properties that affect the build process including Gradle configuration:

QT_ANDROID_ABIS

List of ABIs that packages of a single target are built for

QT_ANDROID_ABIS

List of ABIs that the project packages are built for

QT_ANDROID_BUILD_ALL_ABIS

Enables building multi-ABI packages using the autodetected Qt for Android SDK list

QT_ANDROID_DEPLOYMENT_DEPENDENCIES

覆盖被添加到目标部署中的 Qt 依赖

QT_ANDROID_DEPLOYMENT_SETTINGS_FILE

指定目标生成的部署设置文件的位置

QT_ANDROID_DEPLOYMENT_TYPE

Forces or disables release package signing regardless of the build type

QT_ANDROID_EXTRA_LIBS

要采用目标部署的 Extra 库

QT_ANDROID_EXTRA_PLUGINS

要采用目标部署的 Extra Qt 插件

QT_ANDROID_MIN_SDK_VERSION

Minimum Android SDK version

QT_ANDROID_MULTI_ABI_FORWARD_VARS

Allows to share CMake variables in multi-ABI builds

QT_ANDROID_NO_DEPLOY_QT_LIBS

Whether Qt shared libraries are packaged in the APK on Android

QT_ANDROID_PACKAGE_SOURCE_DIR

自定义 Android 包模板的路径

QT_ANDROID_SDK_BUILD_TOOLS_REVISION

Revision of Android build tools to use

QT_ANDROID_SIGN_AAB

Signs the .aab package with the specified keystore, alias, and store password

QT_ANDROID_SIGN_APK

Signs the package with the specified keystore, alias, and store password

QT_ANDROID_SYSTEM_LIBS_PREFIX

Specifies the location of Qt libraries on the target device

QT_ANDROID_TARGET_SDK_VERSION

Android target SDK version

Variables affecting the Android app manifest file

This is a list of CMake variables or properties that can set some of the Android Manifest's configuration directly from CMake without having to manually set them in the manifest.

QT_ANDROID_APPLICATION_ARGUMENTS

传递给 Android 应用程序的自变量列表

QT_ANDROID_VERSION_CODE

Internal Android app version

QT_ANDROID_VERSION_NAME

Human-readable Android app version