4.17. Ninja-1.13.2

Ninja is a small build system with a focus on speed.

Package Information

Ninja Dependencies

Required

Cmake-4.3.2, Binutils-2.46.0-pass2, Coreutils-9.10, GCC-15.2.0-pass2 Python-3.14.4

4.17.1. Installation of Ninja

Prepare Ninja for compilation:

export NINJAJOBS=4

If desired, make ninja recognize the environment variable NINJAJOBS by running the stream editor:

sed -i '/int Guess/a \
  int   j = 0;\
  char* jobs = getenv( "NINJAJOBS" );\
  if ( jobs != NULL ) j = atoi( jobs );\
  if ( j > 0 ) return j;\
  ' src/ninja.cc

Now Configure the Package, issue:

cmake -B build -DBUILD_TESTING=OFF -DNINJA_BUILD_BINARY=ON

To Compile the Package, issue:

cmake --build build

Now Install the Package, issue:

install -vm755 build/ninja /usr/bin/

install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja
install -vDm644 misc/zsh-completion /usr/share/zsh/site-functions/_ninja

4.17.2. Contents of Ninja

Installed programs: PROGRAMS
Installed libraries: LIBRARIES
Installed directories: DIRECTORIES