mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-13 05:41:05 +00:00
meson: optionalize pango dependency used by video/closedcaption
Similar to -Dpango=<auto|enabled|disabled> in gst-plugins-base.
This commit is contained in:
parent
970ebed57b
commit
6ad453e726
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue