skia2/experimental/skottiekit/Makefile
Kevin Lubick 3088c69b5f [skottiekit] Add a proof-of-concept only Skottie WASM build.
The goal is to see how small this can be w/o disrupting
CanvasKit.

Change-Id: Ia96ebf94dbe335d9db481d9264279163f8c37e16
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/285012
Reviewed-by: Florin Malita <fmalita@chromium.org>
2020-04-27 14:28:20 +00:00

33 lines
1.1 KiB
Makefile

debug: clean_examples
# Does an incremental build where possible.
./compile.sh debug
cp ../../out/skottiekit_debug/skottiekit.js ./examples/bin
cp ../../out/skottiekit_debug/skottiekit.wasm ./examples/bin
cp ../../out/skottiekit_debug/skottiekit.wasm.map ./examples/bin
debug_cpu: clean_examples
# Does an incremental build where possible.
./compile.sh debug cpu
cp ../../out/skottiekit_debug/skottiekit.js ./examples/bin
cp ../../out/skottiekit_debug/skottiekit.wasm ./examples/bin
cp ../../out/skottiekit_debug/skottiekit.wasm.map ./examples/bin
release: clean_examples
# Does an incremental build where possible.
./compile.sh
cp ../../out/skottiekit/skottiekit.js ./examples/bin
cp ../../out/skottiekit/skottiekit.wasm ./examples/bin
release_cpu: clean_examples
# Does an incremental build where possible.
./compile.sh cpu
cp ../../out/skottiekit/skottiekit.js ./examples/bin
cp ../../out/skottiekit/skottiekit.wasm ./examples/bin
clean_examples:
rm -f ./examples/bin/*
mkdir -p ./examples/bin
serve:
echo "Go check out http://localhost:8001/"
cd examples && python ../serve.py