Skip to content

Commit

Permalink
Fix the issues after reviewed by @BtbN
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinEesmaa committed Jul 25, 2024
1 parent 3075d82 commit f1359da
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions scripts.d/50-vvenc.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

SCRIPT_REPO="https://github.com/fraunhoferhhi/vvenc"
SCRIPT_REPO="https://github.com/fraunhoferhhi/vvenc.git"

ffbuild_enabled() {
[[ $ADDINS_STR == *4.4* ]] && return -1
Expand All @@ -11,29 +11,20 @@ ffbuild_enabled() {
return 0
}

fixarm64=()

ffbuild_dockerbuild() {

mkdir build && cd build

if [[ $TARGET == *arm64 ]]; then
fixarm64=(
-DVVENC_ENABLE_X86_SIMD=OFF
-DVVENC_ENABLE_ARM_SIMD=OFF
)
export fixarm64 = "-DVVENC_ENABLE_X86_SIMD=OFF -DVVENC_ENABLE_ARM_SIMD=OFF"
fi

cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" "${fixarm64[@]}" ..
-DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" $fixarm64 ..
make -j$(nproc)
make install
}

ffbuild_configure() {
echo --enable-libvvenc
}

ffbuild_unconfigure() {
echo --disable-libvvenc
}

0 comments on commit f1359da

Please sign in to comment.