Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: cross-bootstrap.sh

Issue 29537638: Issue 6226 - Use mesonbuild as a build system (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Extract the NDK in the right place. Created April 4, 2018, 7:28 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « README.md ('k') | cross/android-arm.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2
3
4 dir=`dirname $0`
5 if [ -z "$dir" ]; then
6 dir = "."
7 fi
8 pushd $dir
9
10 NDK_VERSION=r12b
11
12 if [ -z "$ANDROID_NDK_ROOT" ]; then
13
14 case `uname` in
15 Darwin)
16 URL=https://dl.google.com/android/repository/android-ndk-$NDK_VERSIO N-darwin-x86_64.zip
17 ;;
18 Linux)
19 URL=https://dl.google.com/android/repository/android-ndk-$NDK_VERSIO N-linux-x86_64.zip
20 ;;
21 *)
22 exit 1
23 ;;
24 esac
25 if [ ! -f "third_party/android-ndk-$NDK_VERSION.zip" ]; then
26 echo "Downloading NDK..."
27 wget $URL -O third_party/android-ndk-$NDK_VERSION.zip
28 fi
29 if [ ! -d "third_party/android-ndk-$NDK_VERSION" ]; then
30 echo "Unzipping NDK"
31 unzip -q third_party/android-ndk-$NDK_VERSION.zip -d third_party
32 fi
33 ANDROID_NDK_ROOT=`pwd`/third_party/android-ndk-$NDK_VERSION
34 fi
35
36 for file in cross/*.in ; do
37 outfile=`dirname $file`/`basename $file .in`
38 sed s#@ANDROID_NDK_ROOT@#$ANDROID_NDK_ROOT#g < $file > $outfile
39 done
40
41 popd
42
43 echo
44 echo "Please do this before proceeding:"
45 echo "export ANDROID_NDK_ROOT=$ANDROID_NDK_ROOT"
46
OLDNEW
« no previous file with comments | « README.md ('k') | cross/android-arm.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld