Skip to content

feat: add compat.zxing-cpp 3.1.1 - #882

Open
FarnaHerry wants to merge 2 commits into
mcpplibs:mainfrom
FarnaHerry:add-zxing-cpp
Open

FarnaHerry wants to merge 2 commits into
mcpplibs:mainfrom
FarnaHerry:add-zxing-cpp

Conversation

@FarnaHerry

Copy link
Copy Markdown
Collaborator

Summary

Add compat.zxing-cpp 3.1.1 (design notes: .agents/docs/2026-11-23-add-zxing-cpp-plan.md).

  • Form: Source compat static library (pkgs/c/compat.zxing-cpp.lua) built from the upstream zxing-cpp/zxing-cpp release asset v3.1.1/zxing-cpp-3.1.1.tar.gz (sha256 c3c02c29c0b519de7bd4e25b376e606e87f0761befd1282815642a2246613d14), which vendors core/src/libzint/ alongside libzueci and the C++/C barcode engine (109 sources, excluding legacy ZXING_WRITERS_OLD units).
  • Headers & Privacy: Generates mcpp_generated/Version.h (readers + bundled-zint writers + C API enabled) and 17 <ZXing/*.h> forwarding headers; keeps */core/src/libzint private per platform via private_include_dirs. Stages license_files = { "*/LICENSE" }.
  • Test: tests/examples/zxing-cpp checks ZXing::Version() / ZXing_Version() and runs encode + SVG + decode roundtrips for QRCode and Code128.

Mirror & Automatic Updates

  • Mirror: No mcpp-res write credentials locally; xpm.<plat>.["3.1.1"].url uses the plain GitHub release URL string (docs/zh/cn-mirror.md fallback).
  • Autoupdate: extensions.autoupdate declares tag = "v${version}" and url = "https://github.com/zxing-cpp/zxing-cpp/releases/download/${tag}/zxing-cpp-${version}.tar.gz".

Verification (mcpp 2026.11.18.1, MCPP_INDEX_MIRROR=GLOBAL)

  • Lint & mcpp xpkg parse pkgs/c/compat.zxing-cpp.lua: parse OK, ALL LINT PASS
  • bash tests/run_members.sh zxing-cpp: compat.zxing-cpp 3.1.1 roundtrip test: ok (QR svg=2297 bytes, Code128=MCPP-311) (test result ok)
  • xpkgindex_update: ci.py audit, inspect --package compat:zxing-cpp, and check --package compat:zxing-cpp (status = "up-to-date")
  • macOS / Windows native builds will be verified by PR CI.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant