本页内容

C

–no-export-modules

说明

项目可以通过.qmlproject 文件中的ModuleFiles节点包含模块。默认情况下,qmlprojectexporter 会导出主项目中找到的模块。您可以使用--no-export-modules 命令行选项来禁用此行为,从而使该工具仅导出与主项目相关的文件。

Qt for MCUs CMake 环境在解析依赖关系树时,采用相同的方法将主项目及其模块分别导出。

用法

// This will only export the files required by the project
qmlprojectexporter --no-export-modules --outdir output-dir my_project.qmlproject

自

该选项是在 QmlProject API 1.3 中引入的。

另请参阅 --no-export-cpp、--no-export-configuration 和ModuleFiles。

在某些 Qt 许可下可用。
了解更多信息。