8.51. Meson-0.57.1

Meson is an open source build system meant to be both extremely fast and as user friendly as possible.

Approximate build time: less than 0.1 SBU
Required disk space: 37 MB
[Tip]

Tip

This section is not strictly required for LFS if not using systemd. On the other hand, meson/ninja is a powerful build system, which is expected to be used more and more often. It is required for several packages in the BLFS book.

8.51.1. Installation of Meson

Compile Meson with the following command:

python3 setup.py build

This package does not come with a test suite.

Install the package:

python3 setup.py install --root=dest
cp -rv dest/* /
install -vDm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson
install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson

The meaning of the install parameters:

--root=dest

By default python3 setup.py install installs various files (such as man pages) into Python Eggs. With a specified root location, setup.py installs these files into a standard hierarchy. Then the hierarchy can just be copied to the standard location.

8.51.2. Contents of Meson

Installed programs: meson
Installed directory: /usr/lib/python3.9/site-packages/meson-0.57.1-py3.9.egg-info and /usr/lib/python3.9/site-packages/mesonbuild

Short Descriptions

meson

A high productivity build system