apotocki/meson
Meson, the build system: meson.py and its mesonbuild package, run by Python.
- Library
- meson
- Newest
- 1.12.1 (r1, apple)
- Targets
- apple, linux, windows
- License
- Apache-2.0
- Homepage
- https://mesonbuild.com
- Keywords
- build, tool
Use it
In otok.toml:
[deps.meson]
recipe = "apotocki/meson"
version = "~> 1.12.1"
Versions
| Version | Target | Channel | Published | Status |
|---|---|---|---|---|
| 1.12.1 (r1, apple) | apple | stable | 2026-11-07 | |
| 1.12.1 (r1, linux) | linux | stable | 2026-11-07 | |
| 1.12.1 (r1, windows) | windows | stable | 2026-11-07 |
1.12.1 (r1, apple)
Platforms
macosx
Toolchains
python { default-recipe = "apotocki/python", version = ">= 3.10" }
Recipe files
build.lua
-- meson.py beside the mesonbuild package, as the release archive has them: meson.py imports mesonbuild from its own
-- directory. Nothing is compiled.
function build(slice, options, deps)
local p = slice.prefix
otok.copy(slice.source .. "/meson.py", p .. "/meson.py")
otok.copy(slice.source .. "/mesonbuild", p .. "/mesonbuild")
return { programs = { meson = { script = p .. "/meson.py", interpreter = "python" } } }
end
recipe.toml
# The otok recipe of Meson (https://github.com/apotocki/otok): the meson program for the builds of other recipes, which
# name it as their toolchain (`meson = { default-recipe = "apotocki/meson" }`). Meson is Python: the program is meson.py,
# run by the Python of the python recipe (docs/PLAN.md decision 70 of otok); the builds that use it bring their ninja.
[recipe]
api = 1
library = "meson"
name = "meson"
version = "1.12.1"
revision = 1
license = "Apache-2.0"
license-files = ["COPYING"]
homepage = "https://mesonbuild.com"
description = "Meson, the build system: meson.py and its mesonbuild package, run by Python."
keywords = ["build", "tool"]
[tool]
programs = ["meson"]
[source]
url = "https://github.com/mesonbuild/meson/releases/download/1.12.1/meson-1.12.1.tar.gz"
sha256 = "ab0a6ca09f8ef70c564c8241fb5a23957886a0b53fb58412b5e07eaf07dba743"
[platforms]
supported = ["macosx"]
build-on = ["macos/xcode"]
[toolchains]
python = { version = ">= 3.10", default-recipe = "apotocki/python" }