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" |
Alexander Afanasyev | 14fd3e2 | 2018-07-04 14:20:53 -0400 | [diff] [blame] | 6 | git clone https://github.com/named-data-mobile/android-crew-staging.git android-sdk-linux/ndk-bundle/crew.dir |
Alexander Afanasyev | da06629 | 2017-11-12 23:02:31 -0500 | [diff] [blame] | 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 | |
Alexander Afanasyev | 14fd3e2 | 2018-07-04 14:20:53 -0400 | [diff] [blame] | 21 | export CREW_OWNER=named-data-mobile |
Alexander Afanasyev | da06629 | 2017-11-12 23:02:31 -0500 | [diff] [blame] | 22 | |
Alexander Afanasyev | 14fd3e2 | 2018-07-04 14:20:53 -0400 | [diff] [blame] | 23 | android-sdk-linux/ndk-bundle/crew.dir/crew install target/sqlite target/openssl target/boost |
| 24 | android-sdk-linux/ndk-bundle/crew.dir/crew install target/ndn_cxx target/nfd |
Alexander Afanasyev | da06629 | 2017-11-12 23:02:31 -0500 | [diff] [blame] | 25 | |
| 26 | echo ndk.dir=`pwd`/android-sdk-linux/ndk-bundle >> local.properties |