libdisplay-info/di-edid-decode/web
Simon Ser 63152283ee Add webapp
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>
2023-12-14 15:50:25 +01:00
..
index.html Add webapp 2023-12-14 15:50:25 +01:00
main.js Add webapp 2023-12-14 15:50:25 +01:00
README.md Add webapp 2023-12-14 15:50:25 +01:00
style.css Add webapp 2023-12-14 15:50:25 +01:00
wasm.txt Add webapp 2023-12-14 15:50:25 +01:00

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/