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