QT_DEPLOY_IGNORED_LIB_DIRS

从运行时依赖项搜索中排除的目录。

该变量由QT_DEPLOY_SUPPORT 指定的脚本定义。它仅应在安装过程中的部署环节或构建后规则中使用。

注意:这是一个 低级部署 API 变量,仅应用于高级用例,即那些未被更高层级 API 命令(如qt_generate_deploy_app_script)涵盖的情况。

该变量于 Qt 6.5 版本中引入。

该变量包含一组目录,在使用qt_deploy_runtime_dependencies() 搜索运行时依赖项时,这些目录将不被纳入考虑范围。

项目可以在调用qt_deploy_runtime_dependencies()之前修改此变量,以控制从哪个目录部署运行时依赖项。

如果在调用qt_deploy_runtime_dependencies()时指定了POST_EXCLUDE_REGEXES 选项,则该变量将被忽略。

在 macOS 或 Windows 上进行部署时,该变量不起作用。

另请参阅 qt_deploy_runtime_dependencies()。

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