介子构建配置
在Projects >Build & Run >Build >Build Settings 中指定所选工具包的构建设置。
Meson 在Build directory 字段指定的目录中构建项目。
构建设置按类别分组。您可以修改所有设置,但backend
除外,它被强制为 Ninja、buildtype
、debug
和optimization
,以确保与Qt Creator 兼容。
要修改设置,请双击该设置。修改后的设置将以粗体显示,直到您选择Apply configuration changes 来应用它们。这将触发meson configure
。如果出现问题,请选择Wipe Project 以修复编译目录配置。
除了本机编译外,Meson 还支持交叉编译。Qt Creator 会为你生成一个本机编译文件。要使用自定义本地文件或交叉文件,请在Parameters 中指定文件名。例如,--cross-file cross_file.txt
。
Meson 生成步骤
Qt Creator 通过运行 来构建 Meson 项目。meson compile --verbose target
可以在Build Steps 中为构建命令添加参数和目标。
构建错误和警告将在Issues 中解析和显示。
Meson 清理步骤
使用 Meson 构建时,可以在Clean Steps 中为清理命令添加参数和目标。
构建错误和警告会被解析并显示在Issues 中。
Copyright © The Qt Company Ltd. and other contributors. 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.