Skip to content

Cheat sheet

jpakkane edited this page Jul 16, 2014 · 17 revisions

This page lists the commands to invoke to achieve some common build tasks with Meson. Unless otherwise specified all the examples below assume that the build directory is created in a directory called build which is located in the source tree's root. It is also assumed that all commands are executed in that directory.

Producing a coverage report

First initialise the build directory with this command.

meson --enable-gcov ..

Then issue the following commands.

ninja
ninja test
ninja coverage-html (or coverage-xml)

The result can be found in the meson-logs subdirectory.

Meson documentation has moved

All documentation is now on the main web site.

This page should be at this address.

Clone this wiki locally