Qt for Android CMake 配置
本页列出了有关 CMake 和 Qt for Android 平台支持的信息。
影响编译过程的变量
此页面列出了影响编译过程的 CMake 变量或属性,包括 Gradle 配置:
单个目标的软件包为其构建的 ABI 列表 | |
项目软件包的 ABI 列表 | |
启用使用自动检测到的 Qt for Android SDK 列表构建多 ABI 软件包 | |
Android 目标 SDK 版本 | |
覆盖添加到目标部署的 Qt 依赖项 | |
指定目标生成的部署设置文件的位置 | |
无论构建类型如何,强制或禁用发布包签名 | |
与目标机一起部署的额外库 | |
与目标一起部署的额外 Qt 插件 | |
启用生成基于 QtQuickViewContent 的类 | |
最低 Android SDK 版本 | |
允许在多ABI 构建中共享 CMake 变量 | |
Qt 共享库是否打包在 Android 的 APK 中 | |
应用程序的软件包名称 | |
自定义 Android 软件包模板的路径 | |
要使用的安卓构建工具版本 | |
使用指定的密钥存储、别名和存储密码签署 .aab 包 | |
使用指定的密钥存储、别名和存储密码签署软件包 | |
指定目标设备上 Qt 库的位置 | |
安卓目标 SDK 版本 | |
标记用于生成 Java 代码的 QML 文件 |
影响 Android 应用程序清单文件的变量
这是 CMake 变量或属性列表,可直接从 CMake 设置 Android 清单的某些配置,而无需在清单中手动设置。
传递给 Android 应用程序的参数列表 | |
安卓应用程序的图标资源名称 | |
安卓应用程序名称 | |
安卓应用程序内部版本 | |
人可读的安卓应用程序版本 |
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.