| # This script will build libgav1 for the default ABI targets supported by |
| # android. You must pass the path to the android NDK as a parameter to this |
| # Android NDK: https://developer.android.com/ndk/downloads |
| # The git tag below is known to work, and will occasionally be updated. Feel |
| # free to use a more recent commit. |
| echo "Usage: ${0} <path_to_android_ndk>" |
| # When updating the libgav1 version, make the same change to libgav1.cmd. |
| git clone -b v0.17.0 --depth 1 https://chromium.googlesource.com/codecs/libgav1 |
| git clone -b lts_2021_03_24 --depth 1 https://github.com/abseil/abseil-cpp.git third_party/abseil-cpp |
| ABI_LIST="armeabi-v7a arm64-v8a x86 x86_64" |
| for abi in ${ABI_LIST}; do |
| -DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchains/android.cmake \ |
| -DCMAKE_BUILD_TYPE=Release \ |
| -DLIBGAV1_ANDROID_NDK_PATH=${1} \ |
| -DLIBGAV1_THREADPOOL_USE_STD_MUTEX=1 \ |