The Meson Build System
Python Meson C C++ Vala Vim script Other
Clone or download
Failed to load latest commit information.
ci CI: Install gobject-introspection test prerequisites on Cygwin Jan 6, 2018
ciimage Update CI image to bionic. May 2, 2018
cross Added ARMCLANG compiler support for C/C++ (#3717) Jun 20, 2018
data meson.vim: Add missing disabler() entry [skip ci] Jul 2, 2018
docs docs: adds a non-docker travis example (#3883) [skip ci] Jul 13, 2018
graphics Logo tweaking. Jul 3, 2015
man Update everything for new release. Jul 2, 2018
manual tests Update 'manual tests/2 multiwrap' libpng dependency to 1.6.34 Apr 18, 2018
mesonbuild Avoid concatenating two options in list Jul 13, 2018
msi Add upgrade support to the MSI generator. [skip ci] Jun 27, 2018
test cases gnome.gdbus_codegen: Handle XML docbook in subdirs Jul 11, 2018
tools Boost: Add Python libraries Oct 25, 2017
.appveyor.yml appveyor: update boost version used with VS 2015 May 18, 2018
.coveragerc Enable code coverage on Travis. May 21, 2017
.editorconfig Add editorconfig file Oct 18, 2016
.gitattributes Created a git attributes file. Jun 7, 2014
.gitignore Ignore vim *.swp files [skip ci] Jul 15, 2018
.mailmap mailmap: add couple of aliases Dec 14, 2016
.travis.yml Test that binaries that use external libraries work Jun 18, 2018
COPYING Start of project. Dec 23, 2012 Add missing file to manifest. [skip ci] Jun 30, 2018 Update minimum python version in May 2, 2018 Reintroduce Python Zipapp support Oct 10, 2016 [skip ci] Improve Contributing file slightly Feb 25, 2018 Use os.path.dirname() instead of os.path.split(...)[0] Mar 12, 2018 sys.path requires str, not pathlib.Path Jun 10, 2018 Turn deprecated commands into errors. Mar 13, 2018 Turn deprecated commands into errors. Mar 13, 2018 Turn deprecated commands into errors. Mar 13, 2018 Turn deprecated commands into errors. Mar 13, 2018 Revert "mesonlib: handle meson exe wrappers" May 31, 2018 Set the meson command to use when we know what it is Jun 1, 2018 Remove had_argument_for() it is not used anymore Jun 6, 2018 run_tests: Run all cross tests together Jun 10, 2018 find_library: Validate and sort globbed shared library files Jul 10, 2018
setup.cfg setup.cfg: Don't warn about commented code Jul 2, 2018 Support installation via polkit May 16, 2018
sideci.yml add sideci.yml Dec 20, 2016 Skip CI for documentation-only pull requests Mar 25, 2018 Print deprecation warning also for wraptool. Jan 8, 2018

Meson® is a project to create the best possible next-generation build system.


PyPI Travis Appveyor Codecov


  • Python (version 3.5 or newer)
  • Ninja (version 1.5 or newer)

Installing from source

You can run Meson directly from a revision control checkout or an extracted tarball. If you wish you can install it locally with the standard Python distutils command python3 install <your options here>.

Meson is also available from PyPi, so it can be installed with pip3 install meson (this does not require a source checkout, pip will download the package automatically). The exact command to type to install with pip can vary between systems, be sure to use the Python 3 version of pip.


Meson requires that you have a source directory and a build directory and that these two are different. In your source root must exist a file called ''. To generate the build system run this command:

meson <source directory> <build directory>

Depending on how you obtained Meson the command might also be called instead of plain meson. In the rest of this document we are going to use the latter form.

You can omit either of the two directories, and Meson will substitute the current directory and autodetect what you mean. This allows you to do things like this:

cd source_root; mkdir builddir; cd builddir; meson ..


cd source_root; mkdir builddir; meson builddir

To compile, cd into your build directory and type ninja. To run unit tests, type ninja test.

Install is the same but it can take an extra argument:

DESTDIR=/destdir/path ninja install

DESTDIR can be omitted. If you are installing to system directories, you may need to run this command with sudo.


We love code contributions. See the contributing.txt file for details.


The irc channel for Meson is #mesonbuild over at Freenode.

Further info

More information about the Meson build system can be found at the project's home page.

Meson is a registered trademark of Jussi Pakkanen