diff options
| author | Alix <agespino@google.com> | 2023-01-05 21:12:31 +0000 |
|---|---|---|
| committer | Alix <agespino@google.com> | 2023-01-12 15:19:55 +0000 |
| commit | 6c087cf01a69f20f791c1cd97272fab94d16bd0d (patch) | |
| tree | 1452c264fbf773b3aa94415797dfd7e0f2b7e252 /java/java.go | |
| parent | ed2491cf201bb42e5a3e9b477a40e3d01c2b5acc (diff) | |
libs support for android_app->* edge
Test: bp2build tests
Bug: 258688914
Change-Id: I2e24c484019c994b43509f350b3c090a40c3ba6a
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go index 5c4452396..e5bb106c8 100644 --- a/java/java.go +++ b/java/java.go @@ -2676,7 +2676,9 @@ 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") || ctx.ModuleType() == "android_library" { + + modType := ctx.ModuleType() + if strings.HasPrefix(modType, "java_binary") || strings.HasPrefix(modType, "java_library") || modType == "android_app" || modType == "android_library" { for _, d := range m.properties.Libs { neverlinkLabel := android.BazelLabelForModuleDepSingle(ctx, d) neverlinkLabel.Label = neverlinkLabel.Label + "-neverlink" |
