platform_build_soong/genrule
Spandan Das a99348dca4 cc Bp2build support for genrules that generate .proto file
If `srcs` contains a gensrcs/genrule module, the current bp2build module
will put it in the catch-all `srcs` attribute. This is reserved for .cpp
sources, so if the genrule produces a .proto/.aidl/... file, this will
fail.

This handles genrules that produce .proto files. To implement this, this
creates an additional partition that detects if the other module is a
genrule/gensrc that produces .proto files. If true, it will append it to
the proto partition.

This CL does not handle
- genrule that produce .c/.aidl/.yacc/.... files. They will continue to
  be partitioned into the catch-all partition
- java modules

Test: unit tests
Test: TH
Bug: 293205700
Change-Id: Ib720fdf3a053ff5dd256e6faa632e3fa7776966d
2023-08-03 18:56:05 +00:00
..
allowlists.go Denylist genrules that fail to build with sandboxing 2023-07-20 15:39:04 -07:00
Android.bp Support sandboxing genrule 2023-05-22 15:02:36 -07:00
genrule.go cc Bp2build support for genrules that generate .proto file 2023-08-03 18:56:05 +00:00
genrule_test.go Merge "Make genrule export_include_dirs more consistent" into main 2023-07-21 13:41:23 +00:00
locations.go Use interface for $(location) values in genrules 2021-03-25 11:06:45 -07:00