mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00

This patch adds saveTvg() function into thorvgwasm.cpp. Functions saves tvg using File System API. To enable fs, changed build flag: -s FORCE_FILESYSTEM=1. Increase in result thorvg-wasm.js size: about 68kB to about 125kB.
19 lines
No EOL
600 B
Text
19 lines
No EOL
600 B
Text
[binaries]
|
|
c = 'EMSDK:upstream/emscripten/emcc.py'
|
|
cpp = 'EMSDK:upstream/emscripten/em++.py'
|
|
ar = 'EMSDK:upstream/emscripten/emar.py'
|
|
|
|
[properties]
|
|
root = 'EMSDK:upstream/emscripten/system'
|
|
cpp_args = ['--bind' , '-s' , 'WASM=1' , '-s' , 'ALLOW_MEMORY_GROWTH=1' , '-s' , 'FORCE_FILESYSTEM=1' , '-O2']
|
|
cpp_link_args = ['--bind' , '-s' , 'WASM=1' , '-s' , 'ALLOW_MEMORY_GROWTH=1' , '-s' , 'FORCE_FILESYSTEM=1' , '-O2']
|
|
shared_lib_suffix = 'js'
|
|
static_lib_suffix = 'js'
|
|
shared_module_suffix = 'js'
|
|
exe_suffix = 'js'
|
|
|
|
[host_machine]
|
|
system = 'emscripten'
|
|
cpu_family = 'x86'
|
|
cpu = 'i686'
|
|
endian = 'little' |