blob: b1ed3b536d8739e3508fc61ef1bdd97fdd8df45c [file] [log] [blame]
include ../make/
.PHONY: build
build: build-placeholders
$(BAZEL) build --config=mayberemote //debugger-app/...
.PHONY: release
$(BAZEL) run --config=mayberemote //debugger-app:push_debugger_container-base
$(MAKE) build-placeholders
.PHONY: get_latest_skia
docker pull
rm -rf build
# Make docker happy by having these folders already exist.
mkdir -p build/debugger
# Extract them from the most recently built docker container. This is built
# with @skia//docker/skia-wasm-release/Dockerfile
docker run -u $$(id -u ${USER}):$$(id -g ${USER}) --rm \
--volume `pwd`/build:/OUT \
sh -c "cp -r /tmp/canvaskit /tmp/VERSION /OUT/"
echo "const SKIA_VERSION = '`cat build/VERSION`';" > build/version.js
.PHONY: push
push: release
# Please do not bypass the override dirty image because that will overwrite all the
# old versions of debugger.
pushk --do-not-override-dirty-image debugger-app
# Default port is 8000, but setting this environment variable can override that
.PHONY: run-local-instance
run-local-instance: build
../_bazel_bin/debugger-app/go/debugger-app/debugger-app_/debugger-app \
--resources_dir ../_bazel_bin/debugger-app/pages/development \
.PHONY: run-with-custom
echo "Using the debugger files in //debugger-app/wasm_libs/local_build"
$(BAZEL) build --config=mayberemote //debugger-app/... --with_local_debugger
../_bazel_bin/debugger-app/go/debugger-app/debugger-app_/debugger-app \
--resources_dir ../_bazel_bin/debugger-app/pages/development \
rm -rf build
mkdir -p build/canvaskit
touch build/canvaskit/canvaskit.js
touch build/canvaskit/canvaskit.wasm
touch build/version.js