meson: optionalize pango dependency used by video/closedcaption

Similar to -Dpango=<auto|enabled|disabled> in gst-plugins-base.
This commit is contained in:
Jan Beich 2021-08-15 11:59:58 +00:00
parent fced787a63
commit f5cc0e50fe
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -1,3 +1,4 @@
option('closedcaption', type : 'feature', value : 'auto', description : 'Build closedcaption plugin')
option('dav1d', type : 'feature', value : 'auto', description : 'Build dav1d plugin')
option('sodium', type : 'combo',
choices : ['system', 'built-in', 'disabled'], value : 'built-in',