QT_NO_COLLECT_BUILD_TREE_APK_DEPS

在 Android 部署过程中,禁止收集项目构建的共享库目标。

该变量自 Qt 6.3 起引入。

注意:该 变量目前处于技术预览阶段,未来版本中可能会发生变化。

注意:此 变量仅在针对 Android 平台时使用。

在项目最终生成阶段,构建系统会收集项目中所有已构建共享库目标的位置。这些位置会被传递给androiddeployqt,以便在解析库之间的依赖关系时进行部署考量。若要禁用此行为,请将此变量设置为TRUE 。

另请参阅 qt_finalize_project()和QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS。

© 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.