mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00

- Changed optimization flags to -Oz, reducing the binary size by 120KB. - Applied wasm-opt convergence as a post-process to ensure the minimum possible size with the given optimization flag.
21 lines
708 B
Text
21 lines
708 B
Text
[binaries]
|
|
cpp = 'EMSDK:upstream/emscripten/em++.py'
|
|
ar = 'EMSDK:upstream/emscripten/emar.py'
|
|
strip = '-strip'
|
|
|
|
[properties]
|
|
root = 'EMSDK:upstream/emscripten/system'
|
|
shared_lib_suffix = 'js'
|
|
static_lib_suffix = 'js'
|
|
shared_module_suffix = 'js'
|
|
exe_suffix = 'js'
|
|
|
|
[built-in options]
|
|
cpp_args = ['-Wshift-negative-value', '-flto', '-Oz', '-fno-exceptions']
|
|
cpp_link_args = ['-Wshift-negative-value', '-flto', '-Oz', '-fno-exceptions', '--bind', '-sWASM=1', '-sALLOW_MEMORY_GROWTH=1', '-sEXPORT_ES6=1', '-sFORCE_FILESYSTEM=1', '-sMODULARIZE=1', '-sEXPORTED_RUNTIME_METHODS=FS', '-sMAX_WEBGL_VERSION=2', '-sFULL_ES3']
|
|
|
|
[host_machine]
|
|
system = 'emscripten'
|
|
cpu_family = 'wasm32'
|
|
cpu = 'wasm32'
|
|
endian = 'little'
|