pw_watch: Bazel run support
Hook up enough bazel to be able to run pw_watch or pw_build through
bazel run commands. For example:
Run watch:
bazelisk run //pw_watch/py:watch
Run a single build (same as watch but only once then exit).
bazelisk run //pw_build/py:project_builder
Run the upstream project builder (optionally with --watch):
bazelisk run //pw_build/py:pigweed_upstream_build -- \
-r default_bazel -r default_gn --watch
Bug: 360140397
Change-Id: I4b3f202d569417e7530ac915e98fd5ed26baeb5e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/242094
Docs-Not-Needed: Anthony DiGirolamo <tonymd@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Taylor Cramer <cramertj@google.com>
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.