third_party_libsnd/Building-for-Android.md
Erik de Castro Lopo 207b926557 Add file Building-for-Android.md
And link to it from README.md.
2016-07-16 22:07:41 +10:00

661 B

Building for Android

Assuming the Android Ndk is installed at location /path/to/toolchain, building libsndfile for Android (arm-linux-androideabi) should be as simple as:

./autogen.sh
export ANDROID_TOOLCHAIN_HOME=/path/to/android/toolchain
./Scripts/android-configure.sh
make

The Scripts/android-configure.sh contains four of variables; ANDROID_NDK_VER, ANDROID_GCC_VER, ANDROID_API_VER and ANDROID_TARGET that can be overridden by setting them before the script is run.

Since I (erikd), do almost zero Android development, I am happy accept patches for this documentation and script to improve its utility for real Android developers.