a small build system with a focus on speed
Go to file
2020-01-27 11:35:41 +01:00
.github/workflows GitHub Actions: Split Windows and macOS workflows 2020-01-18 00:17:38 +01:00
doc Merge pull request #1624 from bungeman/patch-1 2020-01-19 13:16:06 +01:00
misc Ignore nonexistent .ninja_log/.ninja_deps for restat and recompact 2019-12-23 14:11:09 +01:00
src mark this 1.10.0.git 2020-01-27 11:35:41 +01:00
.clang-format Add a .clang-format file. 2014-04-15 22:08:21 -07:00
.editorconfig Add .editorconfig 2019-12-22 14:12:43 +01:00
.gitignore Remove some outdated lines from .gitignore 2019-12-20 14:58:19 +01:00
.travis.yml Travis CI: Remove broken Xcode config 2019-10-28 09:42:54 +01:00
appveyor.yml Fix MinGW bootstrap build by applying the fix in appveyor.yml permanently. 2019-08-26 18:49:47 +02:00
bootstrap.py drop bootstrap.py 2014-11-18 08:15:37 -08:00
CMakeLists.txt CMake: Use static MSVC runtime, fixes #1692 2020-01-17 23:38:12 +01:00
configure.py Fix warnings on mingw build 2019-11-23 17:47:44 +08:00
CONTRIBUTING.md Use short CONTRIBUTING.md instead of HACKING.md 2019-11-24 12:58:31 +01:00
COPYING Revert 78f893bdbb 2017-05-15 18:41:22 -04:00
README.md Add basic build instructions to the README 2019-11-24 12:58:31 +01:00
RELEASING Use short CONTRIBUTING.md instead of HACKING.md 2019-11-24 12:58:31 +01:00

Ninja

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.

Binaries for Linux, Mac, and Windows are available at GitHub. 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're interested in making changes to Ninja, read CONTRIBUTING.md first.

Building Ninja itself

You can either build Ninja via the custom generator script written in Python or via CMake. For more details see the wiki.

Python

./configure.py --bootstrap

This will generate the ninja binary and a build.ninja file you can now use to built Ninja with itself.

CMake

cmake -Bbuild-cmake -H.
cmake --build build-cmake

The ninja binary will now be inside the build-cmake directory (you can choose any other name you like).

To run the unit tests:

./build-cmake/ninja_test