2018-09-20 21:39:31 +00:00
|
|
|
clean:
|
|
|
|
rm -rf ../../out/canvaskit_wasm
|
2018-10-16 14:15:01 +00:00
|
|
|
rm -rf ./canvaskit/bin
|
2018-09-20 21:39:31 +00:00
|
|
|
$(MAKE) release
|
|
|
|
|
|
|
|
release:
|
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh
|
2018-10-16 14:15:01 +00:00
|
|
|
mkdir -p ./canvaskit/bin
|
|
|
|
cp ../../out/canvaskit_wasm/canvaskit.js ./canvaskit/bin
|
|
|
|
cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvaskit/bin
|
2018-09-20 21:39:31 +00:00
|
|
|
|
2018-10-17 11:57:18 +00:00
|
|
|
release_cpu:
|
|
|
|
# Does an incremental build where possible.
|
2018-11-20 19:07:42 +00:00
|
|
|
./compile.sh cpu_only
|
2018-10-17 11:57:18 +00:00
|
|
|
mkdir -p ./canvaskit/bin
|
|
|
|
cp ../../out/canvaskit_wasm/canvaskit.js ./canvaskit/bin
|
|
|
|
cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvaskit/bin
|
|
|
|
|
2018-09-20 21:39:31 +00:00
|
|
|
debug:
|
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh debug
|
2018-10-16 14:15:01 +00:00
|
|
|
mkdir -p ./canvaskit/bin
|
|
|
|
cp ../../out/canvaskit_wasm_debug/canvaskit.js ./canvaskit/bin
|
|
|
|
cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./canvaskit/bin
|
2018-09-20 21:39:31 +00:00
|
|
|
|
2018-10-17 11:57:18 +00:00
|
|
|
debug_cpu:
|
|
|
|
# Does an incremental build where possible.
|
2018-11-20 19:07:42 +00:00
|
|
|
./compile.sh debug cpu_only
|
2018-10-17 11:57:18 +00:00
|
|
|
mkdir -p ./canvaskit/bin
|
|
|
|
cp ../../out/canvaskit_wasm_debug/canvaskit.js ./canvaskit/bin
|
|
|
|
cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./canvaskit/bin
|
|
|
|
|
2018-09-20 21:39:31 +00:00
|
|
|
local-example:
|
2018-10-16 14:15:01 +00:00
|
|
|
rm -rf node_modules/canvaskit
|
2018-09-20 21:39:31 +00:00
|
|
|
mkdir -p node_modules
|
2018-10-16 14:15:01 +00:00
|
|
|
ln -s -T ../canvaskit node_modules/canvaskit
|
|
|
|
echo "Go check out http://localhost:8000/canvaskit/example.html"
|
2018-09-20 21:39:31 +00:00
|
|
|
python serve.py
|
2018-10-16 14:15:01 +00:00
|
|
|
|
|
|
|
test-continuous:
|
|
|
|
echo "Assuming npm install has been run by user"
|
|
|
|
echo "Also assuming make debug or release has also been run by a user (if needed)"
|
2018-10-17 11:57:18 +00:00
|
|
|
npx karma start ./karma.conf.js --no-single-run --watch-poll
|
|
|
|
|
|
|
|
node-example:
|
2018-11-07 15:43:42 +00:00
|
|
|
node ./canvaskit/node.example.js --expose-wasm
|