Skip to content
Snippets Groups Projects
Commit 833a65cc authored by Fabrice Fontaine's avatar Fabrice Fontaine Committed by Tim-Philipp Müller
Browse files

meson: allow the user to disable opencv

Allow the user to really disable opencv through meson (i.e.
-Dopencv=disabled).

Part-of: <gstreamer/gst-plugins-bad!1533>
parent b48702e4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment