= Meson = '''`meson(1)`''' is a build system written in Python. <> ---- == Installation == Some distributions offer a `meson` package. More generally, `meson(1)` is distributed as a Python module and script. {{{ python3 -m pip install meson #or pipx install meson }}} ---- == Usage == `meson(1)` must be called with a directory argument, and the directory must contain a `meson.build` file. A simple build script looks like: {{{ project('Project Name', 'c') src = ['helloworld.c', 'foo.c', 'bar.c'] executable('helloworld', src) }}} Note that arguments are implicitly flattened. The `executable` method actually takes 1 or more arguments indicating source code files, not an array argument. Here the `src` array is seamlessly replaced with its members. Generally, `meson(1)` is called like: {{{ mkdir build cd build meson .. }}} ---- == See also == [[https://man.archlinux.org/man/meson.1|meson(1)]] ---- CategoryRicottone