The Meson Build System
Python Meson C C++ Vim script Vala Other
Latest commit 18675c3 Jan 3, 2018 @ignatenkobrain ignatenkobrain committed with jpakkane rpm: print testlog from subshell
false || { rc=$?; echo $rc; exit $rc } || :

Exits current shell without possibility to prevent that.

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Permalink
Failed to load latest commit information.
ci Revert "Add an additional Cygwin package repo with patched ninja" Sep 27, 2017
ciimage [Qt module] Updated Dokerfile, added since 0.44 mention in doc Nov 23, 2017
cross Use GCC 7 for cross compilation tests. Oct 28, 2017
data rpm: print testlog from subshell Jan 4, 2018
docs Add a missing space. Jan 2, 2018
graphics Logo tweaking. Jul 3, 2015
man Updated version number for new release. Dec 10, 2017
manual tests updates test svn-url to point to meson controlled repository Sep 30, 2017
mesonbuild Bump minimum supported Python from 3.4 to 3.5. Jan 4, 2018
msi Review fixes. Nov 21, 2017
test cases Merge pull request #2856 from jon-turney/warning-location Jan 3, 2018
tools Boost: Add Python libraries Oct 25, 2017
.appveyor.yml Bump minimum supported Python from 3.4 to 3.5. Jan 4, 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 added *.pyc to .gitignore Jul 21, 2017
.mailmap mailmap: add couple of aliases Dec 14, 2016
.travis.yml Explicitly include homebrew paths. Jan 2, 2018
COPYING Start of project. Dec 23, 2012
MANIFEST.in Bump version number for release. Dec 18, 2016
README.md typo Jul 14, 2017
__main__.py Reintroduce Python Zipapp support Oct 10, 2016
contributing.txt Created documentation page for code contributions. Dec 20, 2017
ghwt.py ghwt: Add a comment at the top briefly explaining what it is Sep 20, 2017
meson.py Print UTF-8 warning only when actually encountering non-ascii filenames. Dec 14, 2017
mesonconf.py Write deprecation warnings to stderr. Aug 2, 2017
mesonintrospect.py Write deprecation warnings to stderr. Aug 2, 2017
mesonrewriter.py flake8: Clean up complained-about unused imports Sep 21, 2017
mesontest.py Write deprecation warnings to stderr. Aug 2, 2017
run_cross_test.py run_project_tests: Clean on backends that can't install Apr 9, 2017
run_project_tests.py Run the boost test on osx on travis. Jan 2, 2018
run_tests.py unit tests: Remove all instances of FakeEnvironment Dec 3, 2017
run_unittests.py Bump minimum supported Python from 3.4 to 3.5. Jan 4, 2018
setup.cfg flake8: disable E731: do not assign a lambda expression, use a def Sep 21, 2017
setup.py Add mesonbuild.compilers to packages in setup.py Jun 27, 2017
sideci.yml add sideci.yml Dec 20, 2016
wraptool.py Back to .py suffix in files. Closes #394. Mar 2, 2016

README.md

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

Status

PyPI Travis Appveyor Codecov

Dependencies

  • Python (version 3.4 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 setup.py 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.

Running

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 'meson.build'. 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 meson.py 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 ..

or

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.

Contributing

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

IRC

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