mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00

revise the compile options to optmize the binary size. also remove all compile warnings. size: 552616 -> 446847
21 lines
595 B
Text
21 lines
595 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', '-Os', '-fno-exceptions']
|
|
cpp_link_args = ['-Wshift-negative-value', '-flto', '-Os', '-fno-exceptions', '--bind', '-sWASM=1', '-sALLOW_MEMORY_GROWTH=1', '-sFORCE_FILESYSTEM=1']
|
|
|
|
[host_machine]
|
|
system = 'emscripten'
|
|
cpu_family = 'x86'
|
|
cpu = 'i686'
|
|
endian = 'little'
|