2020-09-06 18:17:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-02-19 16:08:32 +00:00
|
|
|
SVTAV1_REPO="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
|
2021-10-28 18:47:11 +00:00
|
|
|
SVTAV1_COMMIT="dd68d3992622006ee1a57739001970e29966e68d"
|
2020-09-06 18:17:54 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
2020-09-27 20:10:05 +00:00
|
|
|
[[ $TARGET == win32 ]] && return -1
|
2020-09-06 18:17:54 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
git clone "$SVTAV1_REPO" svtav1
|
|
|
|
cd svtav1
|
|
|
|
git checkout "$SVTAV1_COMMIT"
|
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DBUILD_APPS=OFF ..
|
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libsvtav1
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libsvtav1
|
|
|
|
}
|