Created
October 30, 2020 09:54
-
-
Save courville/f2107eab1ae4438fd883630432c5702c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git clone https://github.com/xiph/opus.git | |
CMAKE_PATH=/opt/android-sdk/cmake/3.10.2.4988404 | |
NDK_PATH=/opt/android-sdk/ndk/21.3.6528147 | |
API_LEVEL=21 | |
for ABI in armeabi-v7a arm64-v8a x86 x86_64 | |
do | |
mkdir -p build-${ABI} | |
pushd build-${ABI} | |
${CMAKE_PATH}/bin/cmake \ | |
-GNinja \ | |
-DBUILD_SHARED_LIBS=ON \ | |
-DANDROID_ABI=${ABI} \ | |
-DANDROID_NDK=${NDK_PATH} \ | |
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=../lib/${ABI} \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_TOOLCHAIN_FILE=${NDK_PATH}/build/cmake/android.toolchain.cmake \ | |
-DANDROID_NATIVE_API_LEVEL=${API_LEVEL} \ | |
../opus | |
ninja | |
popd | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment