2018-09-20 21:39:31 +00:00
|
|
|
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
|
2018-10-09 13:36:35 +00:00
|
|
|
cp ../../out/canvaskit_wasm/canvaskit.js ./canvas-kit/bin
|
|
|
|
cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvas-kit/bin
|
2018-09-20 21:39:31 +00:00
|
|
|
|
|
|
|
debug:
|
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh debug
|
|
|
|
mkdir -p ./canvas-kit/bin
|
2018-10-09 13:36:35 +00:00
|
|
|
cp ../../out/canvaskit_wasm/canvaskit.js ./canvas-kit/bin
|
|
|
|
cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvas-kit/bin
|
2018-09-20 21:39:31 +00:00
|
|
|
|
|
|
|
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
|