mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-29 22:24:28 +02:00
40 lines
1.1 KiB
Bash
Executable File
40 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://github.com/fraunhoferhhi/vvenc.git"
|
|
SCRIPT_COMMIT="a1996a8c12593c5ce116243bed7a65dd59489a8d"
|
|
|
|
ffbuild_enabled() {
|
|
[[ $TARGET != *32 ]] || return -1
|
|
(( $(ffbuild_ffver) > 700 )) || return -1
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
mkdir build && cd build
|
|
|
|
local armsimd=()
|
|
if [[ $TARGET == *arm* ]]; then
|
|
armsimd+=( -DVVENC_ENABLE_ARM_SIMD=ON )
|
|
|
|
if [[ "$CC" != *clang* ]]; then
|
|
export CFLAGS="$CFLAGS -fpermissive -Wno-error=uninitialized -Wno-error=maybe-uninitialized"
|
|
export CXXFLAGS="$CXXFLAGS -fpermissive -Wno-error=uninitialized -Wno-error=maybe-uninitialized"
|
|
fi
|
|
fi
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_SHARED_LIBS=OFF -DEXTRALIBS="-lstdc++" "${armsimd[@]}" ..
|
|
|
|
make -j$(nproc)
|
|
make install
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-libvvenc
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
(( $(ffbuild_ffver) > 700 )) || return 0
|
|
echo --disable-libvvenc
|
|
}
|