50-svtav1.sh 716 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. SCRIPT_REPO="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
  3. SCRIPT_COMMIT="6e69def4ec283fe0b71195671245c3b768bebdef"
  4. ffbuild_enabled() {
  5. [[ $TARGET == win32 ]] && return -1
  6. return 0
  7. }
  8. ffbuild_dockerdl() {
  9. echo "git clone \"$SCRIPT_REPO\" . && git checkout \"$SCRIPT_COMMIT\""
  10. }
  11. ffbuild_dockerbuild() {
  12. mkdir build && cd build
  13. 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 -DENABLE_AVX512=ON ..
  14. make -j$(nproc)
  15. make install
  16. }
  17. ffbuild_configure() {
  18. echo --enable-libsvtav1
  19. }
  20. ffbuild_unconfigure() {
  21. echo --disable-libsvtav1
  22. }