LinuxCommandLibrary

meson

fast build system

TLDR

Setup build directory

$ meson setup [builddir]
copy
Configure with options
$ meson setup [builddir] -D[option=value]
copy
Compile project
$ meson compile -C [builddir]
copy
Run tests
$ meson test -C [builddir]
copy
Install project
$ meson install -C [builddir]
copy
Reconfigure
$ meson configure [builddir] -D[option=value]
copy

SYNOPSIS

meson command [options]

DESCRIPTION

meson is a fast build system. It generates ninja build files from meson.build definitions.
The tool provides simple syntax and fast configuration. Used by many open source projects.

PARAMETERS

COMMAND

Meson command (setup, compile, test).
setup DIR
Configure build directory.
compile -C DIR
Build project.
test -C DIR
Run tests.
install -C DIR
Install project.
-D OPT=VAL
Set option.
--help
Display help information.

CAVEATS

Requires ninja backend. Python-based. Different from make/cmake.

HISTORY

Meson was created by Jussi Pakkanen in 2013 as a fast, user-friendly build system.

SEE ALSO

ninja(1), cmake(1), make(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community