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>2021-08-15 14:59:58 +0300
committerJan Beich <jbeich@FreeBSD.org>2021-08-15 19:05:24 +0300
commitf5cc0e50fee1b8484807c77a89168feb49cfbd05 (patch)
treefc7fe7f9f7f00b00c3e2c6975acabfe9a77ea328 /meson.build
parentfced787a63c522129735c97e75cf54a8567c7d17 (diff)
meson: optionalize pango dependency used by video/closedcaption
Similar to -Dpango=<auto|enabled|disabled> in gst-plugins-base.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index ba023cf77..c58b0416d 100644
--- a/meson.build
+++ b/meson.build
@@ -35,7 +35,6 @@ plugins_rep = {
'audio/audiofx': 'libgstrsaudiofx',
'video/cdg': 'libgstcdg',
'audio/claxon': 'libgstclaxon',
- 'video/closedcaption': 'libgstrsclosedcaption',
'utils/fallbackswitch': 'libgstfallbackswitch',
'generic/file': 'libgstrsfile',
'video/flavors': 'libgstrsflv',
@@ -59,6 +58,12 @@ plugins_rep = {
exclude = []
extra_env = {}
+if dependency('pangocairo', required : get_option('closedcaption')).found()
+ plugins_rep += {'video/closedcaption' : 'libgstrsclosedcaption',}
+else
+ exclude += ['video/closedcaption']
+endif
+
if dependency('dav1d', required : get_option('dav1d')).found()
plugins_rep += {'video/dav1d' : 'libgstrsdav1d'}
else