ci: Add installation of pre-compiled OpenSSL NDK libraries
Change-Id: I059c8515fcfe8ee58a34d20c66b182802e1ce6c9
diff --git a/.jenkins.d/10-get-ndk.sh b/.jenkins.d/10-get-ndk.sh
index 4b66ca6..c1cfe24 100755
--- a/.jenkins.d/10-get-ndk.sh
+++ b/.jenkins.d/10-get-ndk.sh
@@ -43,3 +43,9 @@
fi
echo ndk.dir=`pwd`/$NDK >> local.properties
+
+cd crystax-ndk-$CRYSTAX_NDK_VERSION/sources
+curl -L -o openssl.tar.gz https://github.com/named-data-mobile/crystax-prebuilt-openssl/archive/crystax-$CRYSTAX_NDK_VERSION.tar.gz
+tar zx --strip-components 1 -C openssl -f openssl.tar.gz
+rm openssl.tar.gz
+cd ../..
diff --git a/.vagrant/Vagrantfile b/.vagrant/Vagrantfile
index 3b59f65..92ac7e6 100644
--- a/.vagrant/Vagrantfile
+++ b/.vagrant/Vagrantfile
@@ -30,6 +30,11 @@
echo sdk.dir=`pwd`/android-sdk-linux > local.properties
echo ndk.dir=`pwd`/crystax-ndk-$CRYSTAX_NDK_VERSION >> local.properties
+
+cd crystax-ndk-$CRYSTAX_NDK_VERSION/sources
+curl -L -o openssl.tar.gz https://github.com/named-data-mobile/crystax-prebuilt-openssl/archive/crystax-$CRYSTAX_NDK_VERSION.tar.gz
+tar zx --strip-components 1 -C openssl -f openssl.tar.gz
+rm openssl.tar.gz
SCRIPT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|