mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-01 22:11:11 +00:00
c0f9551fc4
Force-build the gtk subproject when building gstreamer This subproject is only pulled in when -Drs=enabled by gst-plugins-rs, so we need to force-enable it here. Co-authored-by: Nirbheek Chauhan <nirbheek@centricular.com> Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1298>
47 lines
1 KiB
Bash
Executable file
47 lines
1 KiB
Bash
Executable file
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
pip3 install meson==1.1.1 --break-system-packages
|
|
|
|
# gstreamer-rs already has a 'gstreamer' directory so don't clone there
|
|
pushd .
|
|
cd ..
|
|
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git \
|
|
--depth 1 \
|
|
--branch main
|
|
|
|
cd gstreamer
|
|
|
|
# plugins required by tests
|
|
PLUGINS="-D gst-plugins-base:ogg=enabled \
|
|
-D gst-plugins-base:vorbis=enabled \
|
|
-D gst-plugins-base:theora=enabled \
|
|
-D gst-plugins-good:matroska=enabled \
|
|
-D gst-plugins-good:vpx=enabled \
|
|
-D gst-plugins-bad:opus=enabled \
|
|
-D gst-plugins-ugly:x264=enabled"
|
|
|
|
echo "subproject('gtk')" >> meson.build
|
|
meson setup build \
|
|
-D prefix=/usr/local \
|
|
-D gpl=enabled \
|
|
-D ugly=enabled \
|
|
-D examples=disabled \
|
|
-D gtk_doc=disabled \
|
|
-D introspection=disabled \
|
|
-D libav=disabled \
|
|
-D python=disabled \
|
|
-D vaapi=disabled \
|
|
$PLUGINS
|
|
meson compile -C build
|
|
meson install -C build
|
|
ldconfig
|
|
|
|
cd ..
|
|
rm -rf gstreamer/
|
|
|
|
# Check what plugins we installed
|
|
gst-inspect-1.0
|
|
|
|
popd
|