platform_build_soong/cmd/soong_build
Jingwen Chen d8004efff2 Generate .bzl rule definitions for every module type in Soong, and
surface module properties as attributes.

This CL maps int, bool, string and string_list module props from Soong
modules into their respective Bazel targets.

With this CL, you can now query modules based on their properties. For
example:

$ bazel query 'attr(nocrt, 1, //...)'
$ bazel query 'attr(apex_available, //apex_available:platform, //...)'
$ bazel query //art/dalvikvm:dalvikvm--linux_glibc_x86_64 --output=build | grep compile_multilib

Test: m bazel_overlay && cd out/soong/bazel_overlay && bazel cquery 'attr(apex_available, com.android.runtime, //...)'

Test: soong_build tests

Fixes: 162720644
Fixes: 164320355
Change-Id: Iea8e594b952feccac3281f36dd6bdee8e7d62c3a
2020-09-09 09:51:45 +00:00
..
Android.bp Surface module properties as Bazel BUILD target attributes in the Bazel overlay 2020-08-21 11:45:46 +00:00
bazel_overlay.go Generate .bzl rule definitions for every module type in Soong, and 2020-09-09 09:51:45 +00:00
bazel_overlay_test.go Generate .bzl rule definitions for every module type in Soong, and 2020-09-09 09:51:45 +00:00
main.go Create a AOSP Bazel overlay workspace with Soong 2020-08-06 10:24:21 +00:00
writedocs.go Generate .bzl rule definitions for every module type in Soong, and 2020-09-09 09:51:45 +00:00