diff options
| author | 2023-03-09 23:03:07 +0000 | |
|---|---|---|
| committer | 2023-03-09 23:03:07 +0000 | |
| commit | bd52ea9ecf61a71b3b32f56c6e14adb48ad8ffb8 (patch) | |
| tree | 06501a58c369cdc8da839ec9fc9f471dbab7d375 /android/filegroup.go | |
| parent | 5c12bdfdd38784cea18b2e48adda8d19da56e5ac (diff) | |
Convert filegroups in api_bp2build
api providing modules (droidstubs, cc_library etc.) can refer to the api
file via a separate filegroup module. Therefore these modules should be
generated in the api_bp2build workspace as well
Test: m api_bp2build && build/bazel/bin/bazel build
--config=api_bp2build --config=android //build/orchestrator/apis:*
Change-Id: I77371bd94a2794770b01b98aaf84b1bc42810841
Diffstat (limited to 'android/filegroup.go')
| -rw-r--r-- | android/filegroup.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android/filegroup.go b/android/filegroup.go index 7d929bc4e..0f6e00e86 100644 --- a/android/filegroup.go +++ b/android/filegroup.go @@ -78,6 +78,12 @@ type bazelAidlLibraryAttributes struct { Strip_import_prefix *string } +// api srcs can be contained in filegroups. +// this should be generated in api_bp2build workspace as well. +func (fg *fileGroup) ConvertWithApiBp2build(ctx TopDownMutatorContext) { + fg.ConvertWithBp2build(ctx) +} + // ConvertWithBp2build performs bp2build conversion of filegroup func (fg *fileGroup) ConvertWithBp2build(ctx TopDownMutatorContext) { srcs := bazel.MakeLabelListAttribute( |