Alexander Afanasyev | da06629 | 2017-11-12 23:02:31 -0500 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
| 2 | set -e |
| 3 | set -x |
| 4 | |
| 5 | android-sdk-linux/tools/bin/sdkmanager "ndk-bundle" |
| 6 | git clone https://github.com/cawka/android-crew-staging.git android-sdk-linux/ndk-bundle/crew.dir |
| 7 | |
| 8 | if [[ ! -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 |
| 19 | fi |
| 20 | |
| 21 | export CREW_OWNER=cawka |
| 22 | # export CREW_DOWNLOAD_BASE=http://irl.cs.ucla.edu/~cawka/android-crew-staging/staging/ |
| 23 | |
| 24 | android-sdk-linux/ndk-bundle/crew.dir/crew install target/sqlite:3.18.0 target/openssl:1.0.2m target/boost:1.65.1 |
| 25 | |
| 26 | echo ndk.dir=`pwd`/android-sdk-linux/ndk-bundle >> local.properties |