From c3298beb0779a8cc09b6d4ea0d2132c0612ea776 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 2 Dec 2026 03:52:50 +0400 Subject: pica-client: show and scan contact ID as a QR code --- windows/zxing-cpp.mk | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 windows/zxing-cpp.mk (limited to 'windows/zxing-cpp.mk') diff --git a/windows/zxing-cpp.mk b/windows/zxing-cpp.mk new file mode 100644 index 0000000..9c52db6 --- /dev/null +++ b/windows/zxing-cpp.mk @@ -0,0 +1,41 @@ +# This file is part of MXE. See LICENSE.md for licensing information. + +PKG := zxing-cpp +$(PKG)_WEBSITE := https://github.com/zxing-cpp/zxing-cpp +$(PKG)_DESCR := ZXing-C++, a barcode and QR code reading and writing library +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.3.0 +$(PKG)_CHECKSUM := 64e4139103fdbc57752698ee15b5f0b0f7af9a0331ecbdc492047e0772c417ba +$(PKG)_GH_CONF := zxing-cpp/zxing-cpp/tags,v +$(PKG)_DEPS := cc + +# ZXING_WRITERS=OLD builds the MultiFormatWriter encoder, which needs nothing +# else. The new CreateBarcodeFromText() one would pull in libzint, either the +# copy bundled with the sources or one fetched from GitHub at build time. +# +# The examples are off because they fetch stb from GitHub at build time, and the +# tests, the C API and the Python module because nothing here uses them. +# +# 2.3 prefers C++20 but builds as C++17 too; asking for 17 keeps MXE's +# compiler from having to handle C++20 library features it may only partly +# support. +define $(PKG)_BUILD + cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \ + -DCMAKE_CXX_STANDARD=17 \ + -DZXING_READERS=ON \ + -DZXING_WRITERS=OLD \ + -DZXING_EXAMPLES=OFF \ + -DZXING_BLACKBOX_TESTS=OFF \ + -DZXING_UNIT_TESTS=OFF \ + -DZXING_C_API=OFF \ + -DZXING_PYTHON_MODULE=OFF \ + -DZXING_DEPENDENCIES=LOCAL + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' + $(MAKE) -C '$(BUILD_DIR)' -j 1 install + + # compile test + '$(TARGET)-g++' \ + -W -Wall -Werror -std=c++17 \ + '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + `'$(TARGET)-pkg-config' zxing --cflags --libs` +endef -- cgit v1.2.1