skia2/modules/pathkit
Kevin Lubick 102dbf9c43 [canvaskit] Disable dynamic execution
This required an update to emscripten, due to there being
a few bug fixes regarding the non-dynamic code and the
Closure compiler/minifier.

Change-Id: Icc922bd98cdd52a6923a9367da3747dac2b897b3
Bug: skia:12795
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/492916
Reviewed-by: Nathaniel Nifong <nifong@google.com>
2022-02-01 13:15:22 +00:00
..
npm-asmjs Fix some master -> main references in docs 2021-09-27 14:52:24 +00:00
npm-wasm Fix some master -> main references in docs 2021-09-27 14:52:24 +00:00
perf
tests
.gitignore
chaining.js
CHANGELOG.md [canvaskit] Disable dynamic execution 2022-02-01 13:15:22 +00:00
compile.sh [canvaskit] Disable dynamic execution 2022-02-01 13:15:22 +00:00
externs.js
helper.js
karma.bench.conf.js
karma.conf.js
Makefile [infra] Deduplicate serve.py 2021-10-12 11:42:50 +00:00
package-lock.json Bump follow-redirects from 1.13.0 to 1.14.7 in /modules/pathkit 2022-01-26 14:01:50 +00:00
package.json
pathkit_wasm_bindings.cpp
README.md

PathKit WASM API

This library lets you use Skia's feature-rich PathOps API in the browser.

Compiling the source

Download the Enscriptem SDK.

Set the EMSDK environment variable to the directory you installed it to.

Run ./compile.sh to compile a production, WASM build to $SKIA_HOME/out/pathkit. Add "--help" for more options.

Deploying to npm

# Build all 3 versions (release, test, debug) for both asmjs and WASM
# These binaries will be placed in the proper places of npm-*/bin
# This takes 5-10 minutes.
make npm

# Update the package.json files of both npm-asmjs and npm-wasm
make update-patch  # or update-minor or update-major

# Publish both repos
make publish