8e9750d3c5
Building CanvasKit uses very similar logic to PathKit, so there was a fair amount of copy/paste/customize. Fixes the name of skia.js/wasm -> canvaskit.js/wasm and adds a package.json to formally track versions. Also move PathKit helper scripts to align better. Docs-Preview: https://skia.org/?cl=160463 Bug: skia: Change-Id: Ie75b30592dcc4d520dca41f6f5579006aaa8849b Reviewed-on: https://skia-review.googlesource.com/c/160463 Reviewed-by: Eric Boren <borenet@google.com>
26 lines
726 B
Makefile
26 lines
726 B
Makefile
clean:
|
|
rm -rf ../../out/canvaskit_wasm
|
|
rm -rf ./canvas-kit/bin
|
|
$(MAKE) release
|
|
|
|
release:
|
|
# Does an incremental build where possible.
|
|
./compile.sh
|
|
mkdir -p ./canvas-kit/bin
|
|
cp ../../out/canvaskit_wasm/canvaskit.js ./canvas-kit/bin
|
|
cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvas-kit/bin
|
|
|
|
debug:
|
|
# Does an incremental build where possible.
|
|
./compile.sh debug
|
|
mkdir -p ./canvas-kit/bin
|
|
cp ../../out/canvaskit_wasm/canvaskit.js ./canvas-kit/bin
|
|
cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvas-kit/bin
|
|
|
|
local-example:
|
|
rm -rf node_modules/canvas-kit
|
|
mkdir -p node_modules
|
|
ln -s -T ../canvas-kit node_modules/canvas-kit
|
|
echo "Go check out http://localhost:8000/canvas-kit/example.html"
|
|
python serve.py
|