meson: add dav1d option

Allow to ensure that the plugin is actually build.
This commit is contained in:
Guillaume Desmottes 2020-01-03 09:46:29 +05:30
parent 46dda60db9
commit 13d4029f70
2 changed files with 2 additions and 1 deletions

View file

@ -39,7 +39,7 @@ plugins_rep = {
exclude = [] exclude = []
if dependency('dav1d', required : false).found() if dependency('dav1d', required : get_option('dav1d')).found()
plugins_rep += {'gst-plugin-dav1d' : 'libgstrsdav1d'} plugins_rep += {'gst-plugin-dav1d' : 'libgstrsdav1d'}
else else
exclude += ['gst-plugin-dav1d'] exclude += ['gst-plugin-dav1d']

1
meson_options.txt Normal file
View file

@ -0,0 +1 @@
option('dav1d', type : 'feature', value : 'auto', description : 'Build dav1d plugin')