mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
binding wasm: tag it as beta version.
wasm interfaces are fragile now. we dont'guarantee compatibility yet.
This commit is contained in:
parent
496ec72f2a
commit
052cfea4b1
4 changed files with 6 additions and 6 deletions
|
@ -83,7 +83,7 @@ if get_option('bindings').contains('capi') == true
|
||||||
config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
|
config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('bindings').contains('wasm') == true
|
if get_option('bindings').contains('wasm_beta') == true
|
||||||
config_h.set10('THORVG_WASM_BINDING_SUPPORT', true)
|
config_h.set10('THORVG_WASM_BINDING_SUPPORT', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ Summary:
|
||||||
Loader (LOTTIE_BETA): @11@
|
Loader (LOTTIE_BETA): @11@
|
||||||
Saver (TVG): @12@
|
Saver (TVG): @12@
|
||||||
Binding (CAPI): @13@
|
Binding (CAPI): @13@
|
||||||
Binding (WASM): @14@
|
Binding (WASM_BETA): @14@
|
||||||
Log Message: @15@
|
Log Message: @15@
|
||||||
Tests: @16@
|
Tests: @16@
|
||||||
Examples: @17@
|
Examples: @17@
|
||||||
|
@ -153,7 +153,7 @@ Summary:
|
||||||
get_option('loaders').contains('lottie_beta'),
|
get_option('loaders').contains('lottie_beta'),
|
||||||
all_savers or get_option('savers').contains('tvg'),
|
all_savers or get_option('savers').contains('tvg'),
|
||||||
get_option('bindings').contains('capi'),
|
get_option('bindings').contains('capi'),
|
||||||
get_option('bindings').contains('wasm'),
|
get_option('bindings').contains('wasm_beta'),
|
||||||
get_option('log'),
|
get_option('log'),
|
||||||
get_option('tests'),
|
get_option('tests'),
|
||||||
get_option('examples'),
|
get_option('examples'),
|
||||||
|
|
|
@ -23,7 +23,7 @@ option('vector',
|
||||||
|
|
||||||
option('bindings',
|
option('bindings',
|
||||||
type: 'array',
|
type: 'array',
|
||||||
choices: ['', 'capi', 'wasm'],
|
choices: ['', 'capi', 'wasm_beta'],
|
||||||
value: [''],
|
value: [''],
|
||||||
description: 'Enable API bindings')
|
description: 'Enable API bindings')
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,6 @@ if get_option('bindings').contains('capi') == true
|
||||||
subdir('capi')
|
subdir('capi')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('bindings').contains('wasm') == true
|
if get_option('bindings').contains('wasm_beta') == true
|
||||||
subdir('wasm')
|
subdir('wasm')
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
if [ ! -d "./build_wasm" ]; then
|
if [ ! -d "./build_wasm" ]; then
|
||||||
sed "s|EMSDK:|$1|g" wasm_cross.txt > /tmp/.wasm_cross.txt
|
sed "s|EMSDK:|$1|g" wasm_cross.txt > /tmp/.wasm_cross.txt
|
||||||
meson -Db_lto=true -Ddefault_library=static -Dstatic=true -Dloaders="all, lottie_beta" -Dsavers="all" -Dbindings="wasm" -Dlog=true --cross-file /tmp/.wasm_cross.txt build_wasm
|
meson -Db_lto=true -Ddefault_library=static -Dstatic=true -Dloaders="all, lottie_beta" -Dsavers="all" -Dbindings="wasm_beta" -Dlog=true --cross-file /tmp/.wasm_cross.txt build_wasm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ninja -C build_wasm/
|
ninja -C build_wasm/
|
||||||
|
|
Loading…
Add table
Reference in a new issue