aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-10-16 23:45:51 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-10-28 23:15:19 +0100
commit2ab1e0604197a4ba7b472fdd391e9bedda701ace (patch)
treeb3514d81e0cdc579b411c1388997d14efaf00ec5
parentc398366d0a6af5938d20355a450ce3c0e1dc8588 (diff)
downloadbuildroot-2ab1e0604197a4ba7b472fdd391e9bedda701ace.tar.gz
buildroot-2ab1e0604197a4ba7b472fdd391e9bedda701ace.tar.bz2
package/zxing-cpp: add opencv3 optional dependency
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [yann.morin.1998@free.fr: split to a separate condition] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit a25793ba0403f5073f606f8323c74209d21bc894) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/zxing-cpp/zxing-cpp.mk3
1 files changed, 3 insertions, 0 deletions
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