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
This commit is contained in:
@@ -164,6 +164,7 @@ type ProtoAttrs struct {
|
||||
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 @@ func Bp2buildProtoProperties(ctx Bp2buildMutatorContext, m *ModuleBase, srcs baz
|
||||
attrs := ProtoAttrs{
|
||||
Srcs: bazel.MakeLabelListAttribute(directProtoSrcs),
|
||||
}
|
||||
attrs.Deps.Append(bazel.MakeLabelListAttribute(protoLibraries))
|
||||
|
||||
for axis, configToProps := range m.GetArchVariantProperties(ctx, &ProtoProperties{}) {
|
||||
for _, rawProps := range configToProps {
|
||||
|
Reference in New Issue
Block a user