A simple bash script for building openssl android.
- Install Android SDK and NDK
brew install android android-ndk ant makedepend
- Edit
~/.bashrc
and add:
# Android SDK
export ANDROID_SDK_ROOT=/usr/local/Cellar/android-sdk/23.0.2
export ANDROID_NDK_ROOT=/usr/local/Cellar/android-ndk/r10b
- Run
source ~/.bashrc
- Build openssl-1.0.1j
./build-openssl-android.sh 1.0.1j
- Build openssl-1.0.2-beta3
./build-openssl-android.sh 1.0.2-beta3
- Build for Android-L
# Install Android-L sdk using `android` command first
_ANDROID_API="android-L" ./build-openssl-android.sh