1cb93a386Sopenharmony_cirelease:
2cb93a386Sopenharmony_ci	# Does an incremental build where possible.
3cb93a386Sopenharmony_ci	./compile.sh
4cb93a386Sopenharmony_ci	mkdir -p ./debugger/bin
5cb93a386Sopenharmony_ci	cp ../../out/debugger_wasm/debugger.js   ./debugger/bin
6cb93a386Sopenharmony_ci	cp ../../out/debugger_wasm/debugger.wasm ./debugger/bin
7cb93a386Sopenharmony_ci	echo "const SKIA_VERSION = 'local release build';" > ./debugger/bin/version.js
8cb93a386Sopenharmony_ci
9cb93a386Sopenharmony_cidebug:
10cb93a386Sopenharmony_ci	# Does an incremental build where possible.
11cb93a386Sopenharmony_ci	./compile.sh debug
12cb93a386Sopenharmony_ci	mkdir -p ./debugger/bin
13cb93a386Sopenharmony_ci	cp ../../out/debugger_wasm_debug/debugger.js   ./debugger/bin
14cb93a386Sopenharmony_ci	cp ../../out/debugger_wasm_debug/debugger.wasm ./debugger/bin
15cb93a386Sopenharmony_ci	echo "const SKIA_VERSION = 'local debug build';" > ./debugger/bin/version.js
16cb93a386Sopenharmony_ci
17cb93a386Sopenharmony_ci# When testing the debugger locally, these assets need to be copied to it's build dir.
18cb93a386Sopenharmony_cimove-assets:
19cb93a386Sopenharmony_ci	rm -rf ${SKIA_INFRA_ROOT}/debugger-app/build/debugger/
20cb93a386Sopenharmony_ci	mkdir ${SKIA_INFRA_ROOT}/debugger-app/build/debugger/
21cb93a386Sopenharmony_ci	cp ./debugger/bin/debugger.js   ${SKIA_INFRA_ROOT}/debugger-app/build/debugger/
22cb93a386Sopenharmony_ci	cp ./debugger/bin/debugger.wasm ${SKIA_INFRA_ROOT}/debugger-app/build/debugger/
23cb93a386Sopenharmony_ci	cp ./debugger/bin/version.js ${SKIA_INFRA_ROOT}/debugger-app/build/
24cb93a386Sopenharmony_ci
25cb93a386Sopenharmony_ci# See buildbot/debugger-app/ for running the frontend.
26cb93a386Sopenharmony_cilocal-debug: debug move-assets
27cb93a386Sopenharmony_ci
28cb93a386Sopenharmony_cilocal-release: release move-assets
29cb93a386Sopenharmony_ci
30cb93a386Sopenharmony_citest-continuous:
31cb93a386Sopenharmony_ci	echo "Assuming npm install has been run by user"
32cb93a386Sopenharmony_ci	echo "Also assuming make debug or release has also been run by a user (if needed)"
33cb93a386Sopenharmony_ci	npx karma start ./karma.conf.js --no-single-run --watch-poll
34