Use make-based openh264 build system

This commit is contained in:
BtbN 2021-11-14 14:49:36 +01:00
parent d1d43c42b0
commit b0416c8f36

View File

@ -11,33 +11,37 @@ ffbuild_dockerbuild() {
git-mini-clone "$OPENH264_REPO" "$OPENH264_COMMIT" openh264 git-mini-clone "$OPENH264_REPO" "$OPENH264_COMMIT" openh264
cd openh264 cd openh264
mkdir bdir && cd bdir
local myconf=( local myconf=(
--prefix="$FFBUILD_PREFIX" PREFIX="$FFBUILD_PREFIX"
--buildtype=release BUILDTYPE=Release
--default-library=static DEBUGSYMBOLS=False
-Dtests=disabled LIBDIR_NAME=lib
CC="$FFBUILD_CROSS_PREFIX"gcc
CXX="$FFBUILD_CROSS_PREFIX"g++
AR="$FFBUILD_CROSS_PREFIX"ar
) )
if [[ $TARGET == win* || $TARGET == linux* ]]; then if [[ $TARGET == win32 ]]; then
myconf+=( myconf+=(
--cross-file=/cross.meson OS=mingw_nt
ARCH=i686
)
elif [[ $TARGET == win64 ]]; then
myconf+=(
OS=mingw_nt
ARCH=x86_64
)
elif [[ $TARGET == linux64 ]]; then
myconf+=(
OS=linux
ARCH=x86_64
) )
else else
echo "Unknown target" echo "Unknown target"
return -1 return -1
fi fi
meson "${myconf[@]}" .. make -j$(nproc) "${myconf[@]}" install-static
ninja -j$(nproc)
ninja install
if [[ $TARGET == win* ]]; then
rm "$FFBUILD_PREFIX"/{lib,bin}/libopenh264*.dll*
else
rm "$FFBUILD_PREFIX"/lib/libopenh264*.so*
fi
} }
ffbuild_configure() { ffbuild_configure() {