Based on original version from http://martine.github.com/ninja/
Ninja is a small build system with a focus on speed. It differs from other build systems in two major respects:
- it is designed to have its input files generated by a higher-level build system,
- it is designed to run builds as fast as possible.
Ninja should be usable on most platforms as cmake do!
- My version support timestamps with 100ns resolution insteads of only 1s while dependency checking.
- It contains a GNUmakefile and a CMakeLists.txt if you like to work `Using Ninja with an IDE:`_
- ninja --version show you a distinguish version number if you build it yourself from develop branch.
- My Nina home page is http://clausklein.github.com/ninja/
- My Nina git repo is https://github.com/ClausKlein/ninja/
See the manual -- http://ClausKlein.github.com/ninja/doc/manual.html or doc/manual.asciidoc included in the distribution -- for background and more details.
Download the current Ninja source code as zip file from https://github.com/ClausKlein/ninja/zipball/develop
Getting a source code version of Ninja with git to work with:
git clone git://github.com/ClausKlein/ninja.git cd ninja make ninja
To bootstrap Ninja and you have python istalled, run python ./bootstrap.py. It first blindly compiles all non-test source files together, then re-builds Ninja using itself and ./build.ninja. You should end up with a Ninja binary in the source root. Run ./ninja -h for help.
mkdir -p build && cd build cmake .. && make # or you have already ninja installed cmake -G Ninja .. && ninja
You may also create a Mac OSX Package Maker installer with cpack:
cpack -C CPackConfig.cmake -G PackageMaker
On Windows you may want to create "Null Soft Installer":
cpack -C CPackConfig.cmake -G NSIS
The only file of interest to a user is the resulting Ninja binary.
You may install it yourself with:
sudo install ninja /usr/local/bin # or sudo make install
If you want to work with code, you should use git-flow . Fork my git repository. Then, run:
git clone --recursive email@example.com:<username>/ninja.git git branch develop origin/develop git flow init -d git flow feature start <your feature>
Then, after develop and testing your work, commit your changes:
git flow feature publish <your feature>
When done, open a pull request to your feature branch.