From 833a65cc3c993b864f077152ace95d660d6a9625 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sat, 22 Aug 2020 23:33:48 +0200 Subject: [PATCH] meson: allow the user to disable opencv Allow the user to really disable opencv through meson (i.e. -Dopencv=disabled). Part-of: --- gst-libs/gst/opencv/meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst-libs/gst/opencv/meson.build b/gst-libs/gst/opencv/meson.build index 6cc4602f31..6c6c6a5155 100644 --- a/gst-libs/gst/opencv/meson.build +++ b/gst-libs/gst/opencv/meson.build @@ -9,6 +9,11 @@ opencv_headers = [ 'gstopencvvideofilter.h', ] +if get_option('opencv').disabled() + gstopencv_dep = disabler() + subdir_done() +endif + opencv_dep = dependency('opencv', version : '>= 3.0.0', required : false) if not opencv_dep.found() opencv_dep = dependency('opencv4', version : '>= 4.0.0', required : false) -- 2.34.1