blob: f8aa92cb5e0c04f7d64bc239b1146e44310ace5b [file] [log] [blame]
Vince Harron8e110ed2015-06-04 16:35:57 -07001#!/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
6PROJ=ninja
7VER=1.5.3
8MSVS=2013
9
10source $(dirname "$0")/build-common.sh build-common.sh
11
12# needed for cygwin
13export PATH="$PATH":.
14
15# ninja specific steps
16cd $RD
17git clone https://github.com/martine/ninja.git src
18cd src
19git checkout v$VER
20if [[ "$OS" == "windows" ]] ; then
21 PLATFORM="--platform=msvc"
22fi
23./configure.py --bootstrap $PLATFORM
24
25# install
26cp $RD/src/ninja $INSTALL
27
28commit_and_push