mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
wip
This commit is contained in:
parent
1422c4ca5f
commit
5be79e91bf
2 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Add table
Reference in a new issue