mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 17:48:31 +02:00
🎉 Use custom skia binaries for wasm render
This commit is contained in:
parent
25a672b958
commit
f50c7a70c2
5 changed files with 52 additions and 44 deletions
|
@ -6,7 +6,18 @@ else
|
|||
export _BUILD_MODE=${1:-debug};
|
||||
fi
|
||||
|
||||
export EMCC_CFLAGS="--no-entry -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s MAX_WEBGL_VERSION=2 -s MODULARIZE=1 -s EXPORT_NAME=createRustSkiaModule -s EXPORTED_RUNTIME_METHODS=GL -s ENVIRONMENT=web -s EXPORT_ES6=1 -sMODULARIZE"
|
||||
export EMCC_CFLAGS="--no-entry \
|
||||
-Os \
|
||||
-sASSERTIONS=1 \
|
||||
-sALLOW_TABLE_GROWTH=1 \
|
||||
-sALLOW_MEMORY_GROWTH=1 \
|
||||
-sENVIRONMENT=web \
|
||||
-sERROR_ON_UNDEFINED_SYMBOLS=0 \
|
||||
-sMAX_WEBGL_VERSION=2 \
|
||||
-sMODULARIZE=1 \
|
||||
-sEXPORT_NAME=createRustSkiaModule \
|
||||
-sEXPORTED_RUNTIME_METHODS=GL \
|
||||
-sEXPORT_ES6=1"
|
||||
|
||||
EMSDK_QUIET=1 . /usr/local/emsdk/emsdk_env.sh;
|
||||
. /usr/local/cargo/env
|
||||
|
@ -22,6 +33,8 @@ if [ "$_BUILD_MODE" = "release" ]; then
|
|||
_CARGO_PARAMS="--release $_CARGO_PARAMS"
|
||||
fi
|
||||
|
||||
export SKIA_BINARIES_URL="https://github.com/penpot/skia-binaries/releases/download/0.80.1-1/skia-binaries-9e7d2684a17084095aef-wasm32-unknown-emscripten-gl-svg-textlayout.tar.gz"
|
||||
|
||||
pushd $_SCRIPT_DIR;
|
||||
cargo build $_CARGO_PARAMS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue