blob: df8bd88e0f17b13bbead20548cf2c39b3f2d915a [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"
Alexander Afanasyev14fd3e22018-07-04 14:20:53 -04006git clone https://github.com/named-data-mobile/android-crew-staging.git android-sdk-linux/ndk-bundle/crew.dir
Alexander Afanasyevda066292017-11-12 23:02:31 -05007
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
Alexander Afanasyev14fd3e22018-07-04 14:20:53 -040021export CREW_OWNER=named-data-mobile
Alexander Afanasyevda066292017-11-12 23:02:31 -050022
Alexander Afanasyev14fd3e22018-07-04 14:20:53 -040023android-sdk-linux/ndk-bundle/crew.dir/crew install target/sqlite target/openssl target/boost
24android-sdk-linux/ndk-bundle/crew.dir/crew install target/ndn_cxx target/nfd
Alexander Afanasyevda066292017-11-12 23:02:31 -050025
26echo ndk.dir=`pwd`/android-sdk-linux/ndk-bundle >> local.properties