libdisplay-info/di-edid-decode/web/wasm.txt
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

15 lines
405 B
Text

[binaries]
c = '/usr/lib/emscripten/emcc'
cpp = '/usr/lib/emscripten/em++'
ar = '/usr/lib/emscripten/emar'
strip = '/usr/lib/emscripten/emstrip'
[built-in options]
default_library = 'static'
c_link_args = ['-sEXPORTED_FUNCTIONS=_main,_malloc,_free', '-sEXPORTED_RUNTIME_METHODS=getValue,setValue,stringToUTF8']
[host_machine]
system = 'emscripten'
cpu_family = 'wasm32'
cpu = 'wasm32'
endian = 'little'