summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2021-11-17 18:44:12 -0800
committerRyan Prichard <rprichard@google.com>2021-11-17 18:44:58 -0800
commit13bfc03e19bbd8bf103563de9d6536d6a543885c (patch)
tree9223bd1e28aede9c74688f98a29a1e5f6b16e6cf
parentb88e85c90e260cfed1d5130499b8dfd7bb9dc02a (diff)
downloadwindows-x86-13bfc03e19bbd8bf103563de9d6536d6a543885c.tar.gz
Update Windows Ninja prebuilt to 1.10.2
Fusion2: http://fusion2/9a0464b3-6986-4d6d-bb48-3c077622887c GCS path: gs://ndk-kokoro-release-artifacts/prod/ndk/ninja/windows_release/4/20211117-182359 Prebuilt updated using: ndk/scripts/update_kokoro_prebuilts.py Test: Treehugger, Kokoro presubmit Bug: None Change-Id: I2ea918ec140af3421c490b909724ee516a6b182e
-rw-r--r--LICENSEbin0 -> 28 bytes
-rw-r--r--build-common.sh116
-rwxr-xr-xbuild-ninja.sh28
-rw-r--r--[-rwxr-xr-x]ninja.exebin399360 -> 546816 bytes
4 files changed, 0 insertions, 144 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..00a0c52
--- /dev/null
+++ b/LICENSE
Binary files differ
diff --git a/build-common.sh b/build-common.sh
deleted file mode 100644
index 0c5c0a3..0000000
--- a/build-common.sh
+++ /dev/null
@@ -1,116 +0,0 @@
-# inputs
-# $PROJ - project name (cmake|ninja|swig)
-# $VER - project version
-# $1 - name of this file
-#
-# this file does the following:
-#
-# 1) define the following env vars
-# OS - linux|darwin|windows
-# USER - username
-# CORES - numer of cores (for parallel builds)
-# PATH (with appropriate compilers)
-# CFLAGS/CXXFLAGS/LDFLAGS
-# RD - root directory for source and object files
-# INSTALL - install directory/git repo root
-# SCRIPT_FILE=absolute path to the parent build script
-# SCRIPT_DIR=absolute path to the parent build script's directory
-# COMMON_FILE=absolute path to this file
-
-#
-# 2) create an empty tmp directory at /tmp/$PROJ-$USER
-# 3) checkout the destination git repo to /tmp/prebuilts/$PROJ/$OS-x86/$VER
-# 4) cd $RD
-
-UNAME="$(uname)"
-case "$UNAME" in
-Linux)
- SCRATCH=/tmp
- OS='linux'
- INSTALL_VER=$VER
- ;;
-Darwin)
- SCRATCH=/tmp
- OS='darwin'
- OSX_MIN=10.6
- export CFLAGS="$CFLAGS -mmacosx-version-min=$OSX_MIN"
- export CXXFLAGS="$CXXFLAGS -mmacosx-version-min=$OSX_MIN"
- export LDFLAGS="$LDFLAGS -mmacosx-version-min=$OSX_MIN"
- INSTALL_VER=$VER
- ;;
-*_NT-*)
- if [[ "$UNAME" == CYGWIN_NT-* ]]; then
- PATH_PREFIX=/cygdrive
- else
- # MINGW32_NT-*
- PATH_PREFIX=
- fi
- SCRATCH=$PATH_PREFIX/d/src/tmp
- USER=$USERNAME
- OS='windows'
- CORES=$NUMBER_OF_PROCESSORS
- # VS2013 x64 Native Tools Command Prompt
- case "$MSVS" in
- 2013)
- export PATH="$PATH_PREFIX/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64/":"$PATH_PREFIX/c/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/":"$PATH_PREFIX/c/Program Files (x86)/Windows Kits/8.1/bin/x64":"$PATH"
- export INCLUDE="C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\INCLUDE;C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\ATLMFC\\INCLUDE;C:\\Program Files (x86)\\Windows Kits\\8.1\\include\\shared;C:\\Program Files (x86)\\Windows Kits\\8.1\\include\\um;C:\\Program Files (x86)\\Windows Kits\\8.1\\include\\winrt;"
- export LIB="C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\LIB\\amd64;C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\ATLMFC\\LIB\\amd64;C:\\Program Files (x86)\\Windows Kits\\8.1\\lib\\winv6.3\\um\\x64;"
- export LIBPATH="C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\LIB\\amd64;C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\ATLMFC\\LIB\\amd64;C:\\Program Files (x86)\\Windows Kits\\8.1\\References\\CommonConfiguration\\Neutral;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1\\ExtensionSDKs\\Microsoft.VCLibs\\12.0\\References\\CommonConfiguration\\neutral;"
- INSTALL_VER=${VER}_vs${MSVS}
- ;;
- *)
- # g++/make build
- export CC=x86_64-w64-mingw32-gcc
- export CXX=x86_64-w64-mingw32-g++
- export LD=x86_64-w64-mingw32-ld
- ;;
- esac
- ;;
-*)
- exit 1
- ;;
-esac
-
-RD=$SCRATCH/$PROJ-$USER
-INSTALL="$RD/install"
-
-cd /tmp # windows can't delete if you're in the dir
-rm -rf $RD
-mkdir -p $INSTALL
-mkdir -p $RD
-cd $RD
-
-# OSX lacks a "realpath" bash command
-realpath() {
- [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
-}
-
-SCRIPT_FILE=$(realpath "$0")
-SCRIPT_DIR="$(dirname "$SCRIPT_FILE")"
-COMMON_FILE="$SCRIPT_DIR/$1"
-
-commit_and_push()
-{
- # check into a local git clone
- rm -rf $SCRATCH/prebuilts/$PROJ/
- mkdir -p $SCRATCH/prebuilts/$PROJ/
- cd $SCRATCH/prebuilts/$PROJ/
- git clone https://android.googlesource.com/platform/prebuilts/$PROJ/$OS-x86
- GIT_REPO="$SCRATCH/prebuilts/$PROJ/$OS-x86"
- cd $GIT_REPO
- git rm -r * || true # ignore error caused by empty directory
- mv $INSTALL/* $GIT_REPO
- cp $SCRIPT_FILE $GIT_REPO
- cp $COMMON_FILE $GIT_REPO
-
- git add .
- if [ -n "$ANDROID_EMAIL" ]; then
- git config user.email $ANDROID_EMAIL
- fi
- git commit -m "Adding binaries for $INSTALL_VER"
-
- # execute this command to upload
- #git push origin HEAD:refs/for/master
-
- rm -rf $RD || true # ignore error
-}
diff --git a/build-ninja.sh b/build-ninja.sh
deleted file mode 100755
index e5ac2bf..0000000
--- a/build-ninja.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/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
diff --git a/ninja.exe b/ninja.exe
index 350f447..0991f80 100755..100644
--- a/ninja.exe
+++ b/ninja.exe
Binary files differ