qt_android_build_all_abis
启用使用自动检测到的 Qt for Android 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 来指定 CMake 变量列表,以便从主 ABI 项目转发到特定于 ABI 的子项目。
另请参阅 QT_PATH_ANDROID_ABI_<ABI>和QT_ANDROID_MULTI_ABI_FORWARD_VARS。
© 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.