diff options
| author | Alix <agespino@google.com> | 2022-10-26 20:40:18 +0000 |
|---|---|---|
| committer | Alix <agespino@google.com> | 2023-01-05 21:13:57 +0000 |
| commit | 82fb94e91e907bc3338a136ade686219af88a0d1 (patch) | |
| tree | 3cca6ab6f7f11af983a45c06030c3f9b45de50a9 /java/java.go | |
| parent | 2266e02a3a643b138feb6f1ff94d88ec46dfda6d (diff) | |
support libs for android_library
adds support for *-> android_library and android_library->* edges
Change-Id: I41d4e1d1b8106a17e67951d47e67b59ef3170d17
Test: manually inspected build files for libWallpaperPicker & android-suppor-v4
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go index 275abbe35..22bcc03bf 100644 --- a/java/java.go +++ b/java/java.go @@ -2663,7 +2663,7 @@ func (m *Library) convertLibraryAttrsBp2Build(ctx android.TopDownMutatorContext) if m.properties.Libs != nil { // TODO 244210934 ALIX Check if this else statement breaks presubmits get rid of it if it doesn't - if strings.HasPrefix(ctx.ModuleType(), "java_binary") || strings.HasPrefix(ctx.ModuleType(), "java_library") { + if strings.HasPrefix(ctx.ModuleType(), "java_binary") || strings.HasPrefix(ctx.ModuleType(), "java_library") || ctx.ModuleType() == "android_library" { for _, d := range m.properties.Libs { neverlinkLabel := android.BazelLabelForModuleDepSingle(ctx, d) neverlinkLabel.Label = neverlinkLabel.Label + "-neverlink" |
