package/gstreamer1/gst1-plugins-bad: add zxing plugin support

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
James Hilliard 2022-11-14 16:22:54 -07:00 committed by Thomas Petazzoni
parent 456a739831
commit 11b2ab5ee2
2 changed files with 16 additions and 1 deletions

View File

@ -738,6 +738,15 @@ comment "zbar plugin needs a toolchain w/ threads, C++ and headers >= 3.0"
depends on !BR2_TOOLCHAIN_HAS_THREADS \
|| !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
config BR2_PACKAGE_GST1_PLUGINS_BAD_ZXING
bool "zxing"
depends on !BR2_STATIC_LIBS # zxing-cpp
depends on BR2_INSTALL_LIBSTDCPP # zxing-cpp
select BR2_PACKAGE_ZXING_CPP
comment "zxing plugin needs a toolchain w/ C++, dynamic library"
depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP
endif
comment "gst1-plugins-bad needs a toolchain w/ C++"

View File

@ -70,7 +70,6 @@ GST1_PLUGINS_BAD_CONF_OPTS += \
-Dsvthevcenc=disabled \
-Dtranscode=disabled \
-Dwasapi2=disabled \
-Dzxing=disabled \
-Dmagicleap=disabled \
-Disac=disabled \
-Diqa=disabled \
@ -812,6 +811,13 @@ else
GST1_PLUGINS_BAD_CONF_OPTS += -Dzbar=disabled
endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_ZXING),y)
GST1_PLUGINS_BAD_CONF_OPTS += -Dzxing=enabled
GST1_PLUGINS_BAD_DEPENDENCIES += zxing-cpp
else
GST1_PLUGINS_BAD_CONF_OPTS += -Dzxing=disabled
endif
# Add GPL license if GPL licensed plugins enabled.
ifeq ($(GST1_PLUGINS_BAD_HAS_GPL_LICENSE),y)
GST1_PLUGINS_BAD_CONF_OPTS += -Dgpl=enabled