bazel.sh: Read bazelrc location from environment.

This allows builds using bazel.sh to specify the bazelrc to use in the
ANDROID_BAZELRC_PATH environment variable. If that environment variable
is a relative path, it will be resolved relative to the TOP directory.
If ANDROID_BAZELRC_PATH specifies a directory, one of darwin.bazelrc or
linux.bazelrc will be used from that directory, based on the OS on which
the build is running.

Test: build with bazel.sh in standalone build
Change-Id: Ifd74e60995b80290ac7245c21abd2cc742b8ed07
1 file changed
tree: 9fc4727f03b03025a24aea872d62b480d2b7d51e
  1. docs/
  2. examples/
  3. platforms/
  4. rules/
  5. scripts/
  6. bazel.BUILD
  7. bazel.sh
  8. bazel.WORKSPACE
  9. common.bazelrc
  10. darwin.bazelrc
  11. linux.bazelrc
  12. OWNERS
  13. README.md
README.md

Bazel

The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.