bp2build: uniquify generated header deps in cc_object macro.

Use native.existing_rule to avoid duplicating cc_library_headers from
being generated. While the functionality is known to be brittle and
causes BUILD files to be order dependent, this is sufficient for our
current use case to avoid blowing up the number of targets in the
//bionic/libc package.

Test: bp2build, sync, bazel build //bionic/...
Change-Id: I498afa47780669daffab09a4885a31a80a8fd2b0
1 file changed
tree: 82087cfe5db93e1b654ad29f38997bed6e76b4f7
  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.