This is a forked repo of ninja, for use by Juniper Networks.
Branches in this fork are as follows:
master
andrelease
belong to the upstream repo, and are not modified by Juniper.master-jnpr
is Juniper's development branch forninja
, and is branched off ofmaster
. Changes should branch off of that, and PRs target it.release-jnpr
is Juniper's "released" version used by developers and CI, from which the internal RPM is built for a givengit
tag
.
(this section is from the upstream original repo)
Ninja is a small build system with a focus on speed. https://ninja-build.org/
See the manual or
doc/manual.asciidoc
included in the distribution for background
and more details.
Run ./ninja -h
for Ninja help.
Installation is not necessary because the only required file is the resulting ninja binary. However, to enable features like Bash completion and Emacs and Vim editing modes, some files in misc/ must be copied to appropriate locations.
If you are in Juniper, you can build Ninja via CMake locally on a dev VM, by turning the JUNIPER
option on.
cmake -Bbuild-ninja -DJUNIPER=ON
cmake --build build-ninja
The ninja
binary will now be inside the build-ninja
directory (you can
choose any other name you like).
To run the unit tests:
./build-ninja/ninja_test