[Buildroot] [git commit] package/zxing-cpp: add opencv3 optional dependency

Yann E. MORIN yann.morin.1998 at free.fr
Sat Oct 17 12:14:00 UTC 2020


commit: https://git.buildroot.net/buildroot/commit/?id=a25793ba0403f5073f606f8323c74209d21bc894
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
[yann.morin.1998 at free.fr: split to a separate condition]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
 package/zxing-cpp/zxing-cpp.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/zxing-cpp/zxing-cpp.mk b/package/zxing-cpp/zxing-cpp.mk
index c138c925bb..fbe3cc7dd9 100644
--- a/package/zxing-cpp/zxing-cpp.mk
+++ b/package/zxing-cpp/zxing-cpp.mk
@@ -19,6 +19,9 @@ endif
 ifeq ($(BR2_PACKAGE_OPENCV_LIB_HIGHGUI),y)
 ZXING_CPP_DEPENDENCIES += opencv
 ZXING_CPP_CONF_OPTS += -DBUILD_OPENCV=ON
+else ifeq ($(BR2_PACKAGE_OPENCV3_LIB_HIGHGUI),y)
+ZXING_CPP_DEPENDENCIES += opencv3
+ZXING_CPP_CONF_OPTS += -DBUILD_OPENCV=ON
 else
 ZXING_CPP_CONF_OPTS += -DBUILD_OPENCV=OFF
 endif


More information about the buildroot mailing list