mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2025-01-13 20:01:23 +01:00
63152283ee
This allows running di-edid-decode from a web browser. The C code is compiled to Web Assembly via Emscripten. The HTML shell is based on [1]. [1]: https://github.com/emscripten-core/emscripten/blob/main/src/shell_minimal.html Signed-off-by: Simon Ser <contact@emersion.fr> |
||
---|---|---|
.. | ||
index.html | ||
main.js | ||
README.md | ||
style.css | ||
wasm.txt |
Webapp
To build di-edid-decode
as a webapp, install Emscripten and run:
meson setup build-wasm/ --cross-file di-edid-decode/web/wasm.txt
ninja -C build-wasm/
Then start a web server serving static files in build-wasm/di-edid-decode/
,
for instance:
python -m http.server --directory build-wasm/di-edid-decode/