From 13d4029f702f0dc4820bfe79fe79f9c93efaf0e8 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 3 Jan 2020 09:46:29 +0530 Subject: [PATCH] meson: add dav1d option Allow to ensure that the plugin is actually build. --- meson.build | 2 +- meson_options.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 meson_options.txt diff --git a/meson.build b/meson.build index 119f4ca6..f74a4f3f 100644 --- a/meson.build +++ b/meson.build @@ -39,7 +39,7 @@ plugins_rep = { exclude = [] -if dependency('dav1d', required : false).found() +if dependency('dav1d', required : get_option('dav1d')).found() plugins_rep += {'gst-plugin-dav1d' : 'libgstrsdav1d'} else exclude += ['gst-plugin-dav1d'] diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 00000000..59e23fe9 --- /dev/null +++ b/meson_options.txt @@ -0,0 +1 @@ +option('dav1d', type : 'feature', value : 'auto', description : 'Build dav1d plugin')