mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-05-01 15:14:30 +02:00
Harfbuzz switched to meson
This commit is contained in:
parent
2eb0c99b5c
commit
29d16490b8
@ -8,35 +8,39 @@ ffbuild_enabled() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
|
mkdir build && cd build
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
|
--cross-file=/cross.meson
|
||||||
--prefix="$FFBUILD_PREFIX"
|
--prefix="$FFBUILD_PREFIX"
|
||||||
--disable-shared
|
--buildtype=release
|
||||||
--enable-static
|
--default-library=static
|
||||||
--with-pic
|
-Dfreetype=enabled
|
||||||
|
-Dglib=disabled
|
||||||
|
-Dgobject=disabled
|
||||||
|
-Dcairo=disabled
|
||||||
|
-Dchafa=disabled
|
||||||
|
-Dtests=disabled
|
||||||
|
-Dintrospection=disabled
|
||||||
|
-Ddocs=disabled
|
||||||
|
-Ddoc_tests=false
|
||||||
|
-Dutilities=disabled
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
if [[ $TARGET == win* ]]; then
|
||||||
myconf+=(
|
myconf+=(
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
-Dgdi=enabled
|
||||||
)
|
)
|
||||||
else
|
|
||||||
echo "Unknown target"
|
|
||||||
return -1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export LIBS="-lpthread"
|
meson setup "${myconf[@]}" ..
|
||||||
|
ninja -j"$(nproc)"
|
||||||
./autogen.sh "${myconf[@]}"
|
ninja install
|
||||||
make -j$(nproc)
|
|
||||||
make install
|
|
||||||
|
|
||||||
echo "Libs.private: -lpthread" >> "$FFBUILD_PREFIX"/lib/pkgconfig/harfbuzz.pc
|
echo "Libs.private: -lpthread" >> "$FFBUILD_PREFIX"/lib/pkgconfig/harfbuzz.pc
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_configure() {
|
ffbuild_configure() {
|
||||||
[[ $ADDINS_STR == *4.4* ]] && return 0
|
(( $(ffbuild_ffver) > 600 )) || return 0
|
||||||
[[ $ADDINS_STR == *5.0* ]] && return 0
|
|
||||||
[[ $ADDINS_STR == *5.1* ]] && return 0
|
|
||||||
[[ $ADDINS_STR == *6.0* ]] && return 0
|
|
||||||
echo --enable-libharfbuzz
|
echo --enable-libharfbuzz
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user