apotocki/ninja
Ninja, a small build system with a focus on speed.
- Library
- ninja
- Newest
- 1.13.2 (r1, apple)
- Targets
- apple, linux, windows
- License
- Apache-2.0
- Homepage
- https://ninja-build.org
- Keywords
- build, tool
Use it
In otok.toml:
[deps.ninja]
recipe = "apotocki/ninja"
version = "~> 1.13.2"
Versions
| Version | Target | Channel | Published | Status |
|---|---|---|---|---|
| 1.13.2 (r1, apple) | apple | stable | 2026-11-07 | |
| 1.13.2 (r1, linux) | linux | stable | 2026-11-07 | |
| 1.13.2 (r2, windows) | windows | stable | 2026-11-12 | |
| 1.13.2 (r1, windows) | windows | stable | 2026-11-07 |
1.13.2 (r1, apple)
Platforms
macosx
Toolchains
python { default-recipe = "apotocki/python", version = ">= 3.6" }
Recipe files
build.lua
-- configure.py --bootstrap compiles ninja with the slice's C++ compiler and leaves it in the working directory.
function build(slice, options, deps)
otok.run({ slice.toolchains.python, "configure.py", "--bootstrap" }, { cwd = slice.source, env = { CXX = slice.toolchain.cxx } })
local program = slice.prefix .. "/bin/ninja"
otok.copy(slice.source .. "/ninja", program)
return { programs = { ninja = program } }
end
recipe.toml
# The otok recipe of Ninja (https://github.com/apotocki/otok): the ninja program for the builds of other recipes, which
# name it as their toolchain (`ninja = { default-recipe = "apotocki/ninja" }`). Bootstrapped by its configure.py with the
# machine's compiler, so it needs no ninja or CMake of its own.
[recipe]
api = 1
library = "ninja"
name = "ninja"
version = "1.13.2"
revision = 1
license = "Apache-2.0"
license-files = ["COPYING"]
homepage = "https://ninja-build.org"
description = "Ninja, a small build system with a focus on speed."
keywords = ["build", "tool"]
[tool]
programs = ["ninja"]
[source]
git = "https://github.com/ninja-build/ninja"
commit = "3441b633c2fe2c494e958780ba0f4227b1327634"
tag = "v1.13.2"
[platforms]
supported = ["macosx"]
build-on = ["macos/xcode"]
[toolchains]
python = { version = ">= 3.6", default-recipe = "apotocki/python" }