Meson Build Configuration

"Meson build settings"

Meson builds projects in the directory specified in the Build directory field.

Build settings are grouped by category. You can modify all settings, except backend, which is forced to Ninja, buildtype, debug, and optimization to ensure compatibility with Qt Creator.

To modify a setting, double-click it. Modified settings are formatted in bold until you select Apply configuration changes to apply them. This triggers meson configure. If problems arise, select Wipe Project to fix the build directory configuration.

Meson supports cross-compiling in addition to native building. Qt Creator generates a native build file for you. To use a custom native file or a cross file instead, specify the file name in Parameters. For example, --cross-file cross_file.txt.

For more information about using Meson, see Setting Up Meson.

Meson Build Steps

Qt Creator builds Meson projects by running ninja -v target.

You can add arguments and targets for the build command in Build Steps.

"Meson build steps"

The build errors and warnings are parsed and displayed in Issues.

Meson Clean Steps

When building with Meson, you can add arguments and targets for the clean command in Clean Steps.

"Meson clean steps"

The build errors and warnings are parsed and displayed in Issues.

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