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>
15 lines
405 B
Text
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'
|