skia2/experimental/canvaskit/Makefile
Kevin Lubick 217056c048 [CanvasKit] Implement some basic Canvas/Surface things.
drawText is having issues in a release build.  Skottie sometimes
asserts in debug mode. This possibly has something to do with
memory alignment - like https://skia-review.googlesource.com/c/skia/+/155980
helped fix.

Patchset 9 shows off integrating Skia drawing to
an HTML canvas using Ganesh.

To see it locally, set up https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html
and then set $EMSDK to be that directory.  Then run

   make clean
   make local-example

and navigate to http://localhost:8000/skia-wasm/example.html

Patchset 20 shows off Skottie animating directly to a Canvas.

Docs-Preview: https://skia.org/?cl=153882
Bug: skia:
Change-Id: I2ad2f4ffac00925ee901982ccbaeb7aa63b1ea23
Reviewed-on: https://skia-review.googlesource.com/153882
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2018-09-21 12:03:55 +00:00

26 lines
706 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/skia.js ./canvas-kit/bin
cp ../../out/canvaskit_wasm/skia.wasm ./canvas-kit/bin
debug:
# Does an incremental build where possible.
./compile.sh debug
mkdir -p ./canvas-kit/bin
cp ../../out/canvaskit_wasm/skia.js ./canvas-kit/bin
cp ../../out/canvaskit_wasm/skia.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