thorvg/wasm_build.sh
Hermet Park 3f05489b80 infra wasm: update the build script.
Disable the log in default for outside users.
we gonna turn it on manually for the lottie viewer
2023-08-17 23:03:37 +09:00

11 lines
417 B
Bash
Executable file

#!/bin/bash
#https://github.com/thorvg/thorvg/wiki/ThorVG-Viewer-Development-Guide
if [ ! -d "./build_wasm" ]; then
sed "s|EMSDK:|$1|g" wasm_cross.txt > /tmp/.wasm_cross.txt
meson -Db_lto=true -Ddefault_library=static -Dstatic=true -Dloaders="all" -Dsavers="all" -Dbindings="wasm_beta" --cross-file /tmp/.wasm_cross.txt build_wasm
fi
ninja -C build_wasm/
ls -lrt build_wasm/src/bindings/wasm/thorvg-wasm.*