2019-04-05 17:39:31 +00:00
|
|
|
release:
|
2019-03-05 15:45:40 +00:00
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh
|
|
|
|
mkdir -p ./debugger/bin
|
|
|
|
cp ../../out/debugger_wasm/debugger.js ./debugger/bin
|
|
|
|
cp ../../out/debugger_wasm/debugger.wasm ./debugger/bin
|
2020-11-19 15:51:53 +00:00
|
|
|
echo "const SKIA_VERSION = 'local release build';" > ./debugger/bin/version.js
|
2019-03-05 15:45:40 +00:00
|
|
|
|
2019-04-05 17:39:31 +00:00
|
|
|
debug:
|
|
|
|
# Does an incremental build where possible.
|
|
|
|
./compile.sh debug
|
|
|
|
mkdir -p ./debugger/bin
|
|
|
|
cp ../../out/debugger_wasm_debug/debugger.js ./debugger/bin
|
|
|
|
cp ../../out/debugger_wasm_debug/debugger.wasm ./debugger/bin
|
2020-11-19 15:51:53 +00:00
|
|
|
echo "const SKIA_VERSION = 'local debug build';" > ./debugger/bin/version.js
|
2019-04-09 16:07:18 +00:00
|
|
|
|
2020-11-19 15:51:53 +00:00
|
|
|
# When testing the debugger locally, these assets need to be copied to it's build dir.
|
2019-04-09 16:07:18 +00:00
|
|
|
move-assets:
|
2020-11-19 15:51:53 +00:00
|
|
|
rm -rf ${SKIA_INFRA_ROOT}/debugger-app/build/debugger/
|
|
|
|
mkdir ${SKIA_INFRA_ROOT}/debugger-app/build/debugger/
|
|
|
|
cp ./debugger/bin/debugger.js ${SKIA_INFRA_ROOT}/debugger-app/build/debugger/
|
|
|
|
cp ./debugger/bin/debugger.wasm ${SKIA_INFRA_ROOT}/debugger-app/build/debugger/
|
|
|
|
cp ./debugger/bin/version.js ${SKIA_INFRA_ROOT}/debugger-app/build/
|
2019-04-05 17:39:31 +00:00
|
|
|
|
2020-11-19 15:51:53 +00:00
|
|
|
# See buildbot/debugger-app/ for running the frontend.
|
|
|
|
local-debug: debug move-assets
|
|
|
|
|
|
|
|
local-release: release move-assets
|
2019-03-05 15:45:40 +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)"
|
2019-03-15 14:58:31 +00:00
|
|
|
npx karma start ./karma.conf.js --no-single-run --watch-poll
|