mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-06 08:09:56 +00:00
meson: allow the user to disable opencv
Allow the user to really disable opencv through meson (i.e. -Dopencv=disabled). Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1533>
This commit is contained in:
parent
b48702e4bc
commit
833a65cc3c
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue