mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-02 05:33:57 -09:00
The patch allows you to choose whether to build encoding (BUILD_WRITERS), decoding (BUILD_READERS) or both. At least one of the two options must be enabled. This way, it's possible to keep the library size at minimum. By default, to ensure backward compatibility, both are compiled. Co-Developed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Co-Developed-by: Francesco Nicoletta Puzzillo <francesco.nicolettap@amarulasolutions.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
comment "zxing-cpp needs a toolchain w/ C++, wchar, dynamic library, threads"
|
|
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
|
|
BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
|
|
|
config BR2_PACKAGE_ZXING_CPP
|
|
bool "zxing-cpp"
|
|
depends on !BR2_STATIC_LIBS
|
|
depends on BR2_USE_WCHAR
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
|
select BR2_PACKAGE_STB
|
|
select BR2_PACKAGE_PYTHON_PYBIND if BR2_PACKAGE_PYTHON3
|
|
select BR2_PACKAGE_ZXING_CPP_READERS if !BR2_PACKAGE_ZXING_CPP_WRITERS
|
|
help
|
|
ZXing-cpp (pronounced "zebra crossing") is an open-source,
|
|
multi-format 1D/2D barcode image processing library
|
|
implemented in Java, with ports to other languages. This
|
|
compiles the C++ port.
|
|
|
|
https://github.com/zxing-cpp/zxing-cpp
|
|
|
|
if BR2_PACKAGE_ZXING_CPP
|
|
|
|
config BR2_PACKAGE_ZXING_CPP_READERS
|
|
bool "readers support"
|
|
default y
|
|
help
|
|
Build with readers (decoders) support
|
|
|
|
config BR2_PACKAGE_ZXING_CPP_WRITERS
|
|
bool "writers support"
|
|
default y
|
|
help
|
|
Build with writers (encoders) support
|
|
|
|
endif # BR2_PACKAGE_ZXING_CPP
|