The Meson Build system The Meson Build system Overview Meson is an open source build system meant to be both extremely fast, and, even more importantly, as user friendly as possible The main design point of Meson is that every moment a developer spends writing or debugging build definitions is a second wasted
The Absolute Beginners Guide to Installing and Using Meson Linux Installing Meson is just as simple as installing the compiler toolchain Debian, Ubuntu and derivatives: sudo apt install meson ninja-build Fedora, Centos, RHEL and derivatives: sudo dnf install meson ninja-build Arch: sudo pacman -S meson Windows Meson provides a standard Windows msi installer that can be downloaded from the Releases page
Manual - Meson Manual This is the user manual for Meson It currently tracks the state of Git head If you are using an older version, some of the information here might not work for you
Getting Meson Meson releases can be downloaded from the GitHub release page, and you can run meson py from inside a release or the git repository itself without doing anything special
Quickstart Guide - Meson Compiling a Meson project The most common use case of Meson is compiling code on a code base you are working on The steps to take are very simple $ cd path to source root $ meson setup builddir cd builddir $ meson compile $ meson test The only thing to note is that you need to create a separate build directory
Command-line commands - Meson Meson is invoked using the following syntax: meson [COMMAND] [COMMAND_OPTIONS] This section describes all available commands and some of their Optional arguments
Tutorial - Meson $ meson compile Once you have set up your build directory the first time, you don't ever need to run the meson command again You always just run meson compile Meson will automatically detect when you have done changes to build definitions and will take care of everything so users don't have to care In this case the following output is produced
meson Meson object (meson) The meson object allows you to introspect various properties of the system This object is always mapped in the meson variable Meson object methods meson add_devenv () add an env object (returned by environment()) to the list of environments that will be applied when using meson devenv command line This is useful for developers who wish to use the project without