platform_build_soong/bazel
Cole Faust a20d947329 Initial implementation of the bazel sandwich
The "bazel sandwich" is a mechanism for bazel to depend on make/soong
outputs. The name comes from the fact that bazel is now at the top
and bottom of the build graph. This is intended to allow us to work
on converting the partition builds to bazel while not all of the
dependencies of the partition have been converted.

It works by adding the bazel_sandwich_import_file rule, which emits a
dangling symlink that starts with bazel_sandwich:, and includes
information that the aquery handler in soong reads. The aquery handler
rewrites the symlink so that it points to a file generated by
make/soong, and adds a ninja dependency from the symlink to the file
it's targeting.

This allows us to depend on make-built files from bazel, but notably
it doesn't allow us to depend on analysis-time information from make.
This shouldn't be a problem for the partitions, but limits the use of
the bazel sandwich to similar, less complicated types of builds.

go/roboleaf-bazel-sandwich

Bug: 265127181
Test: m bazel_sandwich
Change-Id: Ic41bae7be0b55f251d04a6a95f846c50ce897adc
2023-07-31 11:53:41 -07:00
..
cquery Create GetPrebuiltFileInfo to Mixed builds cquery api 2023-06-07 22:08:30 +00:00
Android.bp Add a persistent bazel server between builds 2023-03-01 23:30:19 -05:00
aquery.go Initial implementation of the bazel sandwich 2023-07-31 11:53:41 -07:00
aquery_test.go Initial implementation of the bazel sandwich 2023-07-31 11:53:41 -07:00
bazel_proxy.go implement USE_BAZEL_VERSION for m 2023-06-01 17:42:18 +00:00
configurability.go Make errorprone a configurable attribute for bazel conversion 2023-07-12 18:18:15 +00:00
constants.go refactor Bazel variable export 2022-04-06 14:48:32 +00:00
properties.go Handle xsd config more like other partitions 2023-07-24 13:01:22 -04:00
properties_test.go Handle xsd config more like other partitions 2023-07-24 13:01:22 -04:00
testing.go add unit test for bp2build allowlist 2022-04-14 13:31:09 +00:00