glassechidna / zxing-cpp

ZXing C++ Library
Apache License 2.0
597 stars 435 forks source link

WASM support #95

Open mfulton26 opened 3 years ago

mfulton26 commented 3 years ago

instructions on building with Emscripten or something similar would be great

a package published to npm/GitHub for use in node bundlers (like webpack) would be even greater

kennyhyun commented 1 year ago

I tried to add wasm build and added an example React app.

https://github.com/yushulx/zxing-cpp-emscripten/tree/master/build-wasm https://github.com/kennyhyun/zxing-cpp-wasm (https://github.com/glassechidna/zxing-cpp/compare/master...kennyhyun:zxing-cpp-wasm:kenny/main)

Please have a look if anyone interested...

p.s. Not sure how to make it npm package though


not sure why I put a wrong url lol

that was what I referenced first