mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-25 21:59:08 +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>
19 lines
329 B
Meson
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
|