1: # If you want to use a local build of dav1d, you must clone the dav1d repo in this directory first, then set CMake's AVIF_CODEC_DAV1D to LOCAL.
2: # The git SHA below is known to work, and will occasionally be updated. Feel free to use a more recent commit.
3
4: # The odd choice of comment style in this file is to try to share this script between *nix and win32.
5
6: # meson and ninja must be in your PATH.
7
8: # If you're running this on Windows, be sure you've already run this (from your VC2019 install dir):
9: #     "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
10
11: # When updating the dav1d version, make the same change to dav1d_android.sh.
12git clone -b 1.2.1 --depth 1 https://code.videolan.org/videolan/dav1d.git
13
14: # Increment the number in line to invalidate github CI's cache of dav1d: 1
15
16cd dav1d
17mkdir build
18cd build
19
20: # macOS might require: -Dc_args=-fno-stack-check
21: # Build with asan: -Db_sanitize=address
22: # Build with ubsan: -Db_sanitize=undefined
23meson setup --default-library=static --buildtype release -Denable_tools=false ..
24ninja
25cd ../..
26