mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-30 06:34:32 +02:00
Use make-based openh264 build system
This commit is contained in:
parent
d1d43c42b0
commit
b0416c8f36
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user