diff options
Diffstat (limited to 'build-ninja.sh')
-rwxr-xr-x | build-ninja.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/build-ninja.sh b/build-ninja.sh new file mode 100755 index 0000000..e5ac2bf --- /dev/null +++ b/build-ninja.sh @@ -0,0 +1,28 @@ +#!/bin/bash -ex +# Download & build ninja on the local machine +# works on Linux, OSX, and Windows (Cygwin) +# leaves output in /tmp/prebuilts/ninja/$OS-x86/ + +PROJ=ninja +VER=1.5.3 +MSVS=2013 + +source $(dirname "$0")/build-common.sh build-common.sh + +# needed for cygwin +export PATH="$PATH":. + +# ninja specific steps +cd $RD +git clone https://github.com/martine/ninja.git src +cd src +git checkout v$VER +if [[ "$OS" == "windows" ]] ; then + PLATFORM="--platform=msvc" +fi +./configure.py --bootstrap $PLATFORM + +# install +cp $RD/src/ninja $INSTALL + +commit_and_push |