It seems I've found a working solution.
- Install Meson (https://github.com/mesonbuild/meson/releases)
- Install NASM (https://www.nasm.us/)
- Add both Meson and NASM to system PATH variable
- Open x64 Native Tools Command Prompt for Visual Studio (to build x64 version)
- Apply the following commands:
git clone https://code.videolan.org/videolan/dav1d.git
cd dav1d
meson build
cd build
meson configure -Dbuildtype=release
meson configure -Ddefault_library=static
ninja
But for an unknown reason it generates static libraries with .a
extension instead of .lib
. I think it's just a typo and it's safe to just rename the generated lib.
To generate shared library use meson configure -Ddefault_library=shared
.