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