Otok public index

apotocki/ninja

apotocki/ninja 1.13.2 (r2, windows)

Library
ninja
Variant
windows, target windows
Channel
stable
Published
2026-11-12
Recipe source
https://github.com/otok-dev/recipes.git
f9a383aab88256600f84848694e609f0d2ed2571 in recipes/ninja/1.13/windows/
Recipe SHA-256
e43d7921cf034a3b4c38b2cf433e2c8d33aed8c8f33771d050c822fbc690061e
Previous
1.13.2 (r1, windows)

Changes since 1.13.2 (r1, windows)

The inputs, options and dependencies are the same.

Recipe files changed

  • build.lua changed
  • recipe.toml changed

0 files are the same as in 1.13.2 (r1, windows).

Inputs

source.commit3441b633c2fe2c494e958780ba0f4227b1327634
source.githttps://github.com/ninja-build/ninja
source.tagv1.13.2

Platforms

windows

Toolchains

Recipe files

build.lua 818 bytes · raw
-- 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;
    -- without the slice's flags: configure.py builds with its own (/Ox /GL) and gives CFLAGS to link.exe too, which warns
    -- of /O2, /DNDEBUG and /MD (LNK4044)
    otok.run({ slice.toolchains.python, "configure.py", "--bootstrap" }, { cwd = slice.source,
        env = { NoDefaultCurrentDirectoryInExePath = false, CFLAGS = false, CXXFLAGS = false, LDFLAGS = false } })
    local program = slice.prefix .. "/bin/ninja.exe"
    otok.copy(slice.source .. "/ninja.exe", program)
    return { programs = { ninja = program } }
end
recipe.toml 945 bytes · raw
# 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 = 2
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" }