Fix a bug where deps were missing for converted proto_library
This is just a partial fix.
Bug: 246997908
Test: Manual build //frameworks/proto_logging/stats:libstats_proto_host_proto
Change-Id: I9e4e62bce22cb68bcd7f917c57f3d1438fcec716
diff --git a/android/proto.go b/android/proto.go
index 3a5d4da..3cac9a1 100644
--- a/android/proto.go
+++ b/android/proto.go
@@ -164,6 +164,7 @@
Srcs bazel.LabelListAttribute
Strip_import_prefix *string
Deps bazel.LabelListAttribute
+ Tags []string
}
// For each package in the include_dirs property a proto_library target should
@@ -203,6 +204,7 @@
attrs := ProtoAttrs{
Srcs: bazel.MakeLabelListAttribute(directProtoSrcs),
}
+ attrs.Deps.Append(bazel.MakeLabelListAttribute(protoLibraries))
for axis, configToProps := range m.GetArchVariantProperties(ctx, &ProtoProperties{}) {
for _, rawProps := range configToProps {