blob: ba4d3871321ee8508aee04abd7fd87f3d6678d1c [file] [log] [blame]
# 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
# script.
# Android NDK:
# The git tag below is known to work, and will occasionally be updated. Feel
# free to use a more recent commit.
if [ $# -ne 1 ]; then
echo "Usage: ${0} <path_to_android_ndk>"
exit 1
# When updating the libgav1 version, make the same change to libgav1.cmd.
git clone -b v0.18.0 --depth 1
cd libgav1
mkdir build
cd build
ABI_LIST="armeabi-v7a arm64-v8a x86 x86_64"
for abi in ${ABI_LIST}; do
mkdir "${abi}"
cd "${abi}"
cmake ../.. \
-G Ninja \
-DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchains/android.cmake \
cd ..
cd ../..