blob: 6548c9425081df965b803fb3f7c90be0ca42e9fe [file] [log] [blame]
Alexander Afanasyevda066292017-11-12 23:02:31 -05001#!/usr/bin/env bash
2set -e
3set -x
4
5android-sdk-linux/tools/bin/sdkmanager "ndk-bundle"
6git clone https://github.com/cawka/android-crew-staging.git android-sdk-linux/ndk-bundle/crew.dir
7
8if [[ ! -z $GEM_PATH ]]; then
9 # Hack for unset GEM_PATH in crew tool
10 ORIG_RUBY=`which ruby`
11 echo '#!/usr/bin/env bash' > ruby
12 echo "export GEM_HOME=$GEM_HOME" >> ruby
13 echo "export GEM_PATH=$GEM_PATH" >> ruby
14 echo "exec $ORIG_RUBY \$@" >> ruby
15 chmod 755 ruby
16
17 export CREW_TOOLS_DIR=`pwd`
18 export PATH=`pwd`:$PATH
19fi
20
21export CREW_OWNER=cawka
22# export CREW_DOWNLOAD_BASE=http://irl.cs.ucla.edu/~cawka/android-crew-staging/staging/
23
24android-sdk-linux/ndk-bundle/crew.dir/crew install target/sqlite:3.18.0 target/openssl:1.0.2m target/boost:1.65.1
25
26echo ndk.dir=`pwd`/android-sdk-linux/ndk-bundle >> local.properties