QT_ANDROID_BUILD_ALL_ABIS
启用使用自动检测到的 Android 版 Qt SDK 列表构建多 ABI 软件包。
该变量自 Qt 6.3 起引入。
注意:该 变量目前处于技术预览阶段,未来版本中可能会发生变化。
注意:此 变量仅在针对 Android 平台时使用。
自动检测可用的 Qt for Android ABI,并使用它们来构建软件包。自动检测功能需要 Qt 安装程序提供的默认目录结构,且目录名称需符合规范。支持的 ABI 包括armeabi-v7a, arm64-v8a, x86, x86_64 。典型的目录结构如下所示:
/path/to/Qt/6.x.x
android_armv7
android_arm64_v8a
android_x86
android_x86_64
...可通过使用QT_PATH_ANDROID_ABI_<ABI> 中的任一变量来自定义自动检测的路径。
该变量默认设置为FALSE 。
注意: 多 ABI项目的构建过程 不提供通用方法来转发在命令行或其他类似方式中指定的 CMake 缓存变量。 请使用 QT_ANDROID_MULTI_ABI_FORWARD_VARS 来指定要从主 ABI 项目转发到特定 ABI 子项目的 CMake 变量列表。
另请参阅 QT_PATH_ANDROID_ABI_<ABI>和QT_ANDROID_MULTI_ABI_FORWARD_VARS。
© 2026 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.