This commit is contained in:
Jinny You 2024-12-02 18:16:05 +09:00
parent 1422c4ca5f
commit 5be79e91bf
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ exe_suffix = 'js'
[built-in options] [built-in options]
cpp_args = ['-Wshift-negative-value', '-flto', '-Os', '-fno-exceptions'] 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', '-sEXPORT_ES6=1', '-sFORCE_FILESYSTEM=1', '-sMODULARIZE=1', '-sEXPORTED_RUNTIME_METHODS=FS', '-sUSE_WEBGPU=1', '-sASYNCIFY=1', '-sSTACK_SIZE=4MB'] cpp_link_args = ['-Wshift-negative-value', '-flto', '-Os', '-fno-exceptions', '--bind', '-sWASM=1', '-sALLOW_MEMORY_GROWTH=1', '-sEXPORT_ES6=1', '-sFORCE_FILESYSTEM=1', '-sMODULARIZE=1', '-sEXPORTED_RUNTIME_METHODS=FS', '-sUSE_WEBGPU=1', '-sASYNCIFY=2', '-sASYNCIFY_EXPORTS=["init"]', '-sSTACK_SIZE=4MB']
[host_machine] [host_machine]
system = 'emscripten' system = 'emscripten'

View file

@ -484,7 +484,7 @@ private:
EMSCRIPTEN_BINDINGS(thorvg_bindings) EMSCRIPTEN_BINDINGS(thorvg_bindings)
{ {
emscripten::function("init", &init); emscripten::function("init", &init, emscripten::async());
emscripten::function("term", &term); emscripten::function("term", &term);
class_<TvgLottieAnimation>("TvgLottieAnimation") class_<TvgLottieAnimation>("TvgLottieAnimation")