aboutsummaryrefslogtreecommitdiff
path: root/extra/gst-plugins/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2022-02-05 16:12:34 +0100
committerCem Keylan <cem@ckyln.com>2022-02-05 16:12:34 +0100
commit0bebfae0fbe03a663538b5adea8d08c4a8e46b38 (patch)
tree51d111ebee1377405062c97393d6a63e657ce5c9 /extra/gst-plugins/build
parentd5d265543d71950c2876e737b07ab9fde1aab688 (diff)
downloadrepository-0bebfae0fbe03a663538b5adea8d08c4a8e46b38.tar.gz
gst-plugins: bump to 1.20.0
Diffstat (limited to 'extra/gst-plugins/build')
-rwxr-xr-xextra/gst-plugins/build17
1 files changed, 14 insertions, 3 deletions
diff --git a/extra/gst-plugins/build b/extra/gst-plugins/build
index 8f54ad02..06055851 100755
--- a/extra/gst-plugins/build
+++ b/extra/gst-plugins/build
@@ -1,5 +1,15 @@
#!/bin/sh -e
+check_option() {
+ # Meson >=0.60.0 fails when an option used is unspecified in the project.
+ # Meson also fails when supplied with empty arguments, so we set the return
+ # value to something that the project provides
+ grep -q "^option('$1'," meson_options.txt || set -- localedir share/locale
+ # We are not trying to pass an option to printf here.
+ # shellcheck disable=3045
+ printf '-D%s=%s' "$@"
+}
+
export DESTDIR="$1"
[ "$CPT_TEST" ] && test=enabled
@@ -10,9 +20,10 @@ for plugin in libav good bad ugly; do (
# Enable auto-features in gst-plugins
cl-meson \
--auto-features=auto \
- -Dexample=false \
- -Dtests=${test:-disabled} \
- -Dqt5=disabled \
+ "$(check_option example false)" \
+ "$(check_option introspection disabled)" \
+ "$(check_option tests ${test:-disabled})" \
+ "$(check_option qt5 disabled)" \
. output
ninja -C output