skia2/experimental/skottiekit/Makefile
Kevin Lubick 29104528cc [infra] Port serve.py from Python2 to 3
These scripts are useful when testing WebAssembly locally
because the mimetype impacts how the binaries are loaded.

The porting was achieved by doing the following:
python -m lib2to3 -w -n serve.py


Change-Id: I09673fa881339a9b157c5fc993e190766efcd85e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/443884
Reviewed-by: Erik Rose <erikrose@google.com>
2021-08-31 15:28:19 +00:00

49 lines
1.6 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
release_full: clean_examples
# Does an incremental build where possible.
./compile.sh full-build
cp ../../out/skottiekit/skottiekit.js ./examples/bin
cp ../../out/skottiekit/skottiekit.wasm ./examples/bin
npm: clean_npm
./compile.sh full-build
cp ../../out/skottiekit/skottiekit.js ./skottiekit/bin
cp ../../out/skottiekit/skottiekit.wasm ./skottiekit/bin
clean_examples:
rm -f ./examples/bin/*
mkdir -p ./examples/bin
clean_npm:
rm -f ./skottiekit/bin/*
mkdir -p ./skottiekit/bin
serve:
echo "Go check out http://localhost:8001/"
cd examples && python3 ../serve.py