bp2build: add stripped library support.

This CL adds an intermediate target in full_cc_library.bzl to optionally
strip a cc_shared_library when requested. It tries to mimic the logic in
cc/soong/strip.go as closely as possible.

There's also a simple smoke test that compares the file sizes of the
stripped libc.so with the original one.

Test: //build/bazel/tests:compare_libc_stripping
Test: TH
Change-Id: Ieef09817b991c3b113707d3bdc292326ed7dd4ba
5 files changed
tree: 7b634dd8f57075a5986972b4863d78b10b27eb4b
  1. bazel_skylib/
  2. ci/
  3. docs/
  4. examples/
  5. json_module_graph/
  6. platforms/
  7. product_variables/
  8. rules/
  9. rules_cc/
  10. scripts/
  11. tests/
  12. bazel.BUILD
  13. bazel.sh
  14. bazel.WORKSPACE
  15. common.bazelrc
  16. darwin.bazelrc
  17. linux.bazelrc
  18. OWNERS
  19. 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.