talira

A small, fast build system whose build files are generated by tools like CMake

open sourceApache-2.0free

Ninja is a small build system focused on speed. Its build files are meant to be generated by a higher-level build system rather than written by hand, so it acts as a build assembler: the constrained format lets it work out incremental builds quickly. It is used to build Google Chrome, parts of Android and LLVM, and CMake and other tools have Ninja backends.

Problems it solves

  • my incremental C++ builds with make are too slow
  • I want CMake to generate a faster build than Makefiles
  • a fast build backend to embed in my own build tool

Features

  • very fast incremental builds from low-level build files
  • designed to be generated by higher-level build systems such as CMake
  • human-readable build file format
  • single binary for Linux, macOS and Windows, or from package managers

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Ninja does.

  1. CMake A powerful software build system
  2. Make Visual automation platform for AI agents, workflows and integrations
  3. Gradle The open source build system of choice for Java, Android, and Kotlin developers
  4. Meson Fast, user-friendly open source build system with a readable, non-Turing-complete language
  5. Xmake Lua-based cross-platform build tool for C and C++ with a built-in package manager

Compare Ninja with the top 3