platform_build_soong/bazel
Chris Parsons 86dc2c268a Support main repository prefixing in cquery
This makes mixed builds resilient to a recent backward-incompatbile
Bazel feature which explicitly adds the main repository (`@`) prefix to
all labels which are stringified by `str(target.label)` in Starlark.

This implementation is compatible with both current Bazel and
Bazel@HEAD.

After a new Bazel release to AOSP, we can clean up this code a little to
only support Bazel with this feature active (and that we need not hedge
on either Bazel behavior).

Bug: 248106697
Test: `m --bazel-mode nothing` with both current Bazel and a new Bazel
Change-Id: Id53c8505bb9080d5073c844de7f1ee57ceceae46
2022-09-28 19:02:51 +00:00
..
cquery Support main repository prefixing in cquery 2022-09-28 19:02:51 +00:00
Android.bp refactor bp2build module allowlists into struct 2022-04-14 13:31:05 +00:00
aquery.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
aquery_test.go hardening of test for aquery.go 2022-08-09 18:07:16 -04:00
configurability.go Support target.apex stanza in bp2build 2022-09-16 21:28:41 +00:00
constants.go refactor Bazel variable export 2022-04-06 14:48:32 +00:00
properties.go Support target.apex stanza in bp2build 2022-09-16 21:28:41 +00:00
properties_test.go product_variables srcs in prebuilt_etc 2022-09-09 20:52:09 +00:00
testing.go add unit test for bp2build allowlist 2022-04-14 13:31:09 +00:00