meson: optionalize pango dependency used by net/onvif

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 committed by Sebastian Dröge
parent 9aeaac5a96
commit d01779dc6c
2 changed files with 5 additions and 1 deletions

View file

@ -54,7 +54,6 @@ plugins = {
'gst-plugin-aws': 'libgstaws', 'gst-plugin-aws': 'libgstaws',
'gst-plugin-hlssink3': 'libgsthlssink3', 'gst-plugin-hlssink3': 'libgsthlssink3',
'gst-plugin-ndi': 'libgstndi', 'gst-plugin-ndi': 'libgstndi',
'gst-plugin-onvif': 'libgstrsonvif',
'gst-plugin-raptorq': 'libgstraptorq', 'gst-plugin-raptorq': 'libgstraptorq',
'gst-plugin-reqwest': 'libgstreqwest', 'gst-plugin-reqwest': 'libgstreqwest',
'gst-plugin-rtp': 'libgstrsrtp', 'gst-plugin-rtp': 'libgstrsrtp',
@ -98,6 +97,10 @@ if dependency('pangocairo', required : get_option('closedcaption')).found()
plugins += {'gst-plugin-closedcaption' : 'libgstrsclosedcaption',} plugins += {'gst-plugin-closedcaption' : 'libgstrsclosedcaption',}
endif endif
if dependency('pangocairo', required : get_option('onvif')).found()
plugins += {'gst-plugin-onvif': 'libgstrsonvif',}
endif
if dependency('dav1d', version : '>= 1.0.0', required : get_option('dav1d')).found() if dependency('dav1d', version : '>= 1.0.0', required : get_option('dav1d')).found()
plugins += {'gst-plugin-dav1d' : 'libgstdav1d'} plugins += {'gst-plugin-dav1d' : 'libgstdav1d'}
endif endif

View file

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