2020-09-05 00:05:18 +01:00
|
|
|
# meson
|
|
|
|
|
2023-05-02 16:16:07 +01:00
|
|
|
> SCons-like build system that uses Python as a front-end language and Ninja as a building backend.
|
2020-09-05 00:05:18 +01:00
|
|
|
> More information: <https://mesonbuild.com>.
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Generate a C project with a given name and version:
|
2020-09-05 00:05:18 +01:00
|
|
|
|
|
|
|
`meson init --language={{c}} --name={{myproject}} --version={{0.1}}`
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
- Configure the `builddir` with default values:
|
2020-09-05 00:05:18 +01:00
|
|
|
|
|
|
|
`meson setup {{build_dir}}`
|
|
|
|
|
|
|
|
- Build the project:
|
|
|
|
|
|
|
|
`meson compile -C {{path/to/build_dir}}`
|
|
|
|
|
2022-02-02 13:46:46 +00:00
|
|
|
- Run all tests in the project:
|
|
|
|
|
|
|
|
`meson test`
|
|
|
|
|
2020-09-05 00:05:18 +01:00
|
|
|
- Show the help:
|
|
|
|
|
|
|
|
`meson --help`
|
|
|
|
|
|
|
|
- Show version info:
|
|
|
|
|
|
|
|
`meson --version`
|