libdisplay-info/di-edid-decode/meson.build
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

19 lines
329 B
Meson

di_edid_decode = executable(
'di-edid-decode',
[
'cta.c',
'displayid.c',
'edid.c',
'main.c',
],
dependencies: [di_dep, math],
install: true,
)
if target_machine.system() == 'emscripten'
fs = import('fs')
foreach filename : ['index.html', 'main.js', 'style.css']
fs.copyfile('web' / filename)
endforeach
endif