1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 23:59:41 +02:00
audacity/lib-src/libsndfile/Building-for-Android.md
Leland Lucius b749a16943 Update libsndfile to 1.0.29pre2+git
This pulls in MANY (over 890) changes compared to our
from our current 1.0.24 version.
2020-03-16 22:41:09 -05: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.