summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Romain Jobredeaux <jobredeaux@google.com> 2022-08-09 17:46:59 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-08-09 17:46:59 +0000
commitaaf4f5ec8a57ad03ca34b6c4469ac883d95f3955 (patch)
treec26c7123e24dafc0321babe76c9df557937d9f36 /java/java.go
parent3d13adc9d141787334b17925126d42a46a7cd2b5 (diff)
parentc9b2bba3cdcbc2a1e10cb13ebd4ebebb131ae094 (diff)
Merge "Bp2Build converter for android_library_import and android_library."
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/java.go b/java/java.go
index f4ec04ef4..481c625f3 100644
--- a/java/java.go
+++ b/java/java.go
@@ -2333,12 +2333,12 @@ func (m *Library) convertLibraryAttrsBp2Build(ctx android.TopDownMutatorContext)
var deps bazel.LabelList
if m.properties.Libs != nil {
- deps.Append(android.BazelLabelForModuleDeps(ctx, m.properties.Libs))
+ deps.Append(android.BazelLabelForModuleDeps(ctx, android.LastUniqueStrings(android.CopyOf(m.properties.Libs))))
}
var staticDeps bazel.LabelList
if m.properties.Static_libs != nil {
- staticDeps.Append(android.BazelLabelForModuleDeps(ctx, m.properties.Static_libs))
+ staticDeps.Append(android.BazelLabelForModuleDeps(ctx, android.LastUniqueStrings(android.CopyOf(m.properties.Static_libs))))
}
protoDepLabel := bp2buildProto(ctx, &m.Module, srcPartitions[protoSrcPartition])