Vince Harron | 8e110ed | 2015-06-04 16:35:57 -0700 | [diff] [blame^] | 1 | #!/bin/bash -ex |
| 2 | # Download & build ninja on the local machine |
| 3 | # works on Linux, OSX, and Windows (Git Bash) |
| 4 | # leaves output in /tmp/prebuilts/ninja/$OS-x86/ |
| 5 | |
| 6 | PROJ=ninja |
| 7 | VER=1.5.3 |
| 8 | MSVS=2013 |
| 9 | |
| 10 | source $(dirname "$0")/build-common.sh build-common.sh |
| 11 | |
| 12 | # needed for cygwin |
| 13 | export PATH="$PATH":. |
| 14 | |
| 15 | # ninja specific steps |
| 16 | cd $RD |
| 17 | git clone https://github.com/martine/ninja.git src |
| 18 | cd src |
| 19 | git checkout v$VER |
| 20 | if [[ "$OS" == "windows" ]] ; then |
| 21 | PLATFORM="--platform=msvc" |
| 22 | fi |
| 23 | ./configure.py --bootstrap $PLATFORM |
| 24 | |
| 25 | # install |
| 26 | cp $RD/src/ninja $INSTALL |
| 27 | |
| 28 | commit_and_push |