Add test for sdk variant of cc libraries

This looks at androidmkinfo to assert the following on sdk variants of
cc libraries
1. It links against NDK variant of bionic and not apex
   (systemapi/module-libapi) variant of bionic. This dependency comes
   from system_dynamic_dep_defaults
2. It links against libstc++ and not (libc++_static + libc++demangle).
   This depdendency comes from STL resolution.

Test: b test //build/bazel/rules/cc:cc_library_static_tests --config=android

Change-Id: I1fbf833d4924ffc5e4a795f4c5929571bbc73508
2 files changed
tree: 51626e116276212db4edb59a1ae0ea386fcd727a
  1. api_surfaces/
  2. bazel_sandwich/
  3. bin/
  4. ci/
  5. compliance/
  6. docs/
  7. examples/
  8. flags/
  9. json_module_graph/
  10. mk2rbc/
  11. mkcompare/
  12. platforms/
  13. product_config/
  14. rules/
  15. scripts/
  16. tests/
  17. toolchains/
  18. utils/
  19. vendor/
  20. .gitignore
  21. bazel.BUILD
  22. bazel.WORKSPACE
  23. buildifier_hook.sh
  24. common.bazelrc
  25. constants_exported_to_soong.bzl
  26. darwin.bazelrc
  27. linux.bazelrc
  28. OWNERS
  29. PREUPLOAD.cfg
  30. 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.