d66553ba8c
The API has been stable for long enough to start using major versions. Change-Id: I70bb75c6f4b51d2d76b933898608ee2efc155f3b Bug: skia:8216 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/503738 Reviewed-by: Joe Gregorio <jcgregorio@google.com>
48 lines
1.6 KiB
Makefile
48 lines
1.6 KiB
Makefile
debug:
|
|
./compile.sh debug
|
|
- rm -rf build/
|
|
mkdir -p ./build/wasm ./build/asmjs
|
|
cp ../../out/pathkit/pathkit.js ./build/wasm/pathkit.js
|
|
cp ../../out/pathkit/pathkit.wasm ./build/wasm/pathkit.wasm
|
|
|
|
./compile.sh asm.js debug
|
|
cp ../../out/pathkit/pathkit.js ./build/asmjs/pathkit.js
|
|
|
|
release:
|
|
./compile.sh
|
|
- rm -rf build/
|
|
mkdir -p ./build/wasm ./build/asmjs
|
|
cp ../../out/pathkit/pathkit.js ./build/wasm/pathkit.js
|
|
cp ../../out/pathkit/pathkit.wasm ./build/wasm/pathkit.wasm
|
|
|
|
./compile.sh asm.js
|
|
cp ../../out/pathkit/pathkit.js ./build/asmjs/pathkit.js
|
|
cp ../../out/pathkit/pathkit.js.mem ./build/asmjs/pathkit.js.mem
|
|
|
|
npm:
|
|
rm -rf ./npm-wasm/bin ./npm-asmjs/bin
|
|
mkdir -p ./npm-wasm/bin ./npm-asmjs/bin
|
|
./compile.sh
|
|
cp ../../out/pathkit/pathkit.js ./npm-wasm/bin
|
|
cp ../../out/pathkit/pathkit.wasm ./npm-wasm/bin
|
|
./compile.sh asm.js
|
|
cp ../../out/pathkit/pathkit.js ./npm-asmjs/bin/pathkit.js
|
|
cp ../../out/pathkit/pathkit.js.mem ./npm-asmjs/bin/pathkit.js.mem
|
|
cp CHANGELOG.md ./npm-wasm
|
|
cp CHANGELOG.md ./npm-asmjs
|
|
|
|
test-continuous:
|
|
echo "Assuming npm ci has been run by user"
|
|
echo "Also assuming make debug or make release has also been run by a user (if needed)"
|
|
npx karma start ./karma.conf.js --no-single-run --watch-poll
|
|
|
|
test-continuous-asmjs:
|
|
echo "Assuming npm ci has been run by user"
|
|
echo "Also assuming make debug or make release has also been run by a user (if needed)"
|
|
ASM_JS=1 npx karma start ./karma.conf.js --no-single-run --watch-poll
|
|
|
|
local-example:
|
|
echo "Go check out http://localhost:8000/npm-wasm/example.html"
|
|
echo "or http://localhost:8000/npm-asmjs/example.html"
|
|
python3 ../../tools/serve_wasm.py
|