From a25793ba0403f5073f606f8323c74209d21bc894 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 16 Oct 2020 23:45:51 +0200 Subject: [PATCH] package/zxing-cpp: add opencv3 optional dependency Signed-off-by: Fabrice Fontaine [yann.morin.1998@free.fr: split to a separate condition] Signed-off-by: Yann E. MORIN --- 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 -- 2.30.2