Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2022-10-16 02:33:30 +0300
committerJan Beich <jbeich@FreeBSD.org>2022-10-16 02:41:09 +0300
commit6da4192fe62cb042591c0a3dcfafc6caab03cb5c (patch)
tree584f32bad9fd8b600b0ece3f7ecb94bc5e76d725 /meson.build
parentb68832638313c1e659240881a023a3775ba5d4fe (diff)
meson: optionalize pango dependency used by video/videofx
Similar to -Dcairo=<auto|enabled|disabled> in gst-plugins-good.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index c9d10bf5f..ea0e04f33 100644
--- a/meson.build
+++ b/meson.build
@@ -61,7 +61,6 @@ plugins = {
# FIXME: libwebp-sys2 will build its bundled version on msvc and apple platforms
# https://github.com/qnighy/libwebp-sys2-rs/issues/4
'gst-plugin-webp': 'libgstrswebp',
- 'gst-plugin-videofx': 'libgstvideofx',
'gst-plugin-uriplaylistbin': 'libgsturiplaylistbin',
'gst-plugin-spotify': 'libgstspotify',
'gst-plugin-textahead': 'libgsttextahead',
@@ -74,6 +73,10 @@ plugins = {
extra_env = {}
+if dependency('cairo-gobject', required : get_option('videofx')).found()
+ plugins += {'gst-plugin-videofx': 'libgstvideofx',}
+endif
+
if dependency('pangocairo', required : get_option('closedcaption')).found()
plugins += {'gst-plugin-closedcaption' : 'libgstrsclosedcaption',}
endif