• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1clean:
2	rm -rf ../../out/canvaskit_wasm
3	rm -rf ./canvaskit/bin
4	$(MAKE) release
5
6release:
7	# Does an incremental build where possible.
8	./compile.sh
9	mkdir -p ./canvaskit/bin
10	cp ../../out/canvaskit_wasm/canvaskit.js   ./canvaskit/bin
11	cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvaskit/bin
12
13release_cpu:
14	# Does an incremental build where possible.
15	./compile.sh cpu_only
16	mkdir -p ./canvaskit/bin
17	cp ../../out/canvaskit_wasm/canvaskit.js   ./canvaskit/bin
18	cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvaskit/bin
19
20debug:
21	# Does an incremental build where possible.
22	./compile.sh debug
23	mkdir -p ./canvaskit/bin
24	cp ../../out/canvaskit_wasm_debug/canvaskit.js   ./canvaskit/bin
25	cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./canvaskit/bin
26	cp ../../out/canvaskit_wasm_debug/canvaskit.wasm.map ./canvaskit/bin
27
28debug_cpu:
29	# Does an incremental build where possible.
30	./compile.sh debug cpu_only
31	mkdir -p ./canvaskit/bin
32	cp ../../out/canvaskit_wasm_debug/canvaskit.js   ./canvaskit/bin
33	cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./canvaskit/bin
34	cp ../../out/canvaskit_wasm_debug/canvaskit.wasm.map ./canvaskit/bin
35
36profile:
37	./compile.sh profiling
38	mkdir -p ./canvaskit/bin
39	cp ../../out/canvaskit_wasm_profile/canvaskit.js       ./canvaskit/bin
40	cp ../../out/canvaskit_wasm_profile/canvaskit.wasm     ./canvaskit/bin
41	cp ../../out/canvaskit_wasm_profile/canvaskit.wasm.map ./canvaskit/bin
42
43profile_cpu:
44	./compile.sh profiling cpu_only
45	mkdir -p ./canvaskit/bin
46	cp ../../out/canvaskit_wasm_profile/canvaskit.js       ./canvaskit/bin
47	cp ../../out/canvaskit_wasm_profile/canvaskit.wasm     ./canvaskit/bin
48	cp ../../out/canvaskit_wasm_profile/canvaskit.wasm.map ./canvaskit/bin
49
50local-example:
51	rm -rf node_modules/canvaskit
52	mkdir -p node_modules
53	ln -s -T ../canvaskit node_modules/canvaskit
54	echo "Go check out http://localhost:8000/canvaskit/example.html"
55	python serve.py
56
57test-continuous:
58	echo "Assuming npm install has been run by user"
59	echo "Also assuming make debug or release has also been run by a user (if needed)"
60	npx karma start ./karma.conf.js --no-single-run --watch-poll
61
62node-example:
63	node ./canvaskit/node.example.js --expose-wasm
64