mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-29 22:24:28 +02:00
50 lines
920 B
Bash
Executable File
50 lines
920 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://code.videolan.org/rist/librist.git"
|
|
SCRIPT_COMMIT="af5d2041fbc4da5faa5844d5ef8fba9d4b2a1864"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
mkdir build && cd build
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
--buildtype=release
|
|
--default-library=static
|
|
-Duse_mbedtls=true
|
|
-Dbuiltin_mbedtls=false
|
|
-Dbuilt_tools=false
|
|
-Dtest=false
|
|
)
|
|
|
|
if [[ $TARGET == win* ]]; then
|
|
myconf+=(
|
|
-Dhave_mingw_pthreads=true
|
|
)
|
|
fi
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--cross-file=/cross.meson
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
meson "${myconf[@]}" ..
|
|
ninja -j"$(nproc)"
|
|
ninja install
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-librist
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-librist
|
|
}
|