QT_HARMONYOS_TARGET_ARCHS
HarmonyOS 应用程序的目标架构。
该属性自 Qt 6.12 起引入。
注意:该 属性目前处于技术预览阶段,未来版本中可能会发生变化。
注意: 仅当目标平台为 HarmonyOS 时,才使用此 属性。
指定 HAP 包所构建的目标架构列表,例如arm64-v8a 。
如果未设置此属性,则默认采用当前构建的架构,即OHOS_ARCH 。
注意: 目前尚不支持为多个架构构建 HAP。如果指定了多个架构,则仅使用第一个,并会发出警告。
set_target_properties(myapp PROPERTIES
QT_HARMONYOS_TARGET_ARCHS "arm64-v8a"
)© 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.