commands.sh

meson

all

SCons-like build system that uses Python as a front-end language and Ninja as a building backend.

More info →

Options (5)

-l, --languageboolean

Generate a C project with a given name and version

Example: meson init {{[-l|--language]}} c {{[-n|--name]}} {{myproject}} --version {{0.1}}
-n, --nameboolean

Generate a C project with a given name and version

Example: meson init {{[-l|--language]}} c {{[-n|--name]}} {{myproject}} --version {{0.1}}
boolean

Configure a directory named `build` with default values for compilation

Example: meson {{[build|setup build]}}
-h, --helpboolean

Display help

Example: meson {{[-h|--help]}}
-v, --versionboolean

Display version

Example: meson {{[-v|--version]}}

Examples (8)

Generate a project with default values

Generate a C project with a given name and version

meson init [-l|--language] c [-n|--name] myproject --version 0.1

Configure a directory named `build` with default values for compilation

meson [build|setup build]

Compile the project

meson compile -C path/to/build_directory

Run all tests in the project

meson test -C path/to/build_directory

Install the project to `/usr/local`

meson install -C path/to/build_directory

Display help

meson [-h|--help]

Display version

meson [-v|--version]
made by @shridhargupta | data from tldr-pages