0002-meson-allow-the-user-to-disable-opencv.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From 1bc387f8feaab9020be72e88cf26ccc1a67a6a10 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sat, 22 Aug 2020 23:33:48 +0200
  4. Subject: [PATCH] meson: allow the user to disable opencv
  5. Allow the user to really disable opencv through meson (i.e.
  6. -Dopencv=disabled).
  7. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  8. [Upstream status:
  9. https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1533]
  10. ---
  11. gst-libs/gst/opencv/meson.build | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/gst-libs/gst/opencv/meson.build b/gst-libs/gst/opencv/meson.build
  14. index 6cc4602f3..fb6c46e40 100644
  15. --- a/gst-libs/gst/opencv/meson.build
  16. +++ b/gst-libs/gst/opencv/meson.build
  17. @@ -13,7 +13,7 @@ opencv_dep = dependency('opencv', version : '>= 3.0.0', required : false)
  18. if not opencv_dep.found()
  19. opencv_dep = dependency('opencv4', version : '>= 4.0.0', required : false)
  20. endif
  21. -if opencv_dep.found()
  22. +if not get_option('opencv').disabled() and opencv_dep.found()
  23. gstopencv = library('gstopencv-' + api_version,
  24. opencv_sources,
  25. c_args : gst_plugins_bad_args + ['-DBUILDING_GST_OPENCV'],
  26. --
  27. 2.28.0