apotocki/ninja 1.13.2 (r1, windows)
- Library
- ninja
- Variant
- windows, target windows
- Channel
- stable
- Published
- 2026-11-07
- Recipe source
- https://github.com/otok-dev/recipes.git
32756a87cf5bd189ca4c9825159bf0713ea8cf5einrecipes/ninja/1.13/windows/ - Recipe SHA-256
3eafc737af8345c0c7a560096e0b00c6f92e305d212a5c6833ab59302f1da750
Recipe files changed
Inputs
| source.commit | 3441b633c2fe2c494e958780ba0f4227b1327634 |
|---|---|
| source.git | https://github.com/ninja-build/ninja |
| source.tag | v1.13.2 |
Platforms
windows
Toolchains
python { default-recipe = "apotocki/python", version = ">= 3.6" }
Recipe files
build.lua
-- configure.py --bootstrap compiles ninja with cl from Visual Studio's environment and leaves it in the working
-- directory.
function build(slice, options, deps)
-- the bootstrap runs ninja.bootstrap.exe by name from the working directory, which Windows does not search with this
otok.run({ slice.toolchains.python, "configure.py", "--bootstrap" },
{ cwd = slice.source, env = { NoDefaultCurrentDirectoryInExePath = false } })
local program = slice.prefix .. "/bin/ninja.exe"
otok.copy(slice.source .. "/ninja.exe", 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
# Visual Studio's cl, 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 = ["windows"]
# configure.py runs cl itself, whatever the environment's compiler: MSVC only
build-on = ["windows/msvc"]
[toolchains]
python = { version = ">= 3.6", default-recipe = "apotocki/python" }