bp2build: support full/lite protos in cc libs
Test: bp2build.sh Bug: 200601772 Change-Id: I3a7e00546726bc63b5eb8d5604557c5988a5320b
This commit is contained in:
@@ -313,16 +313,16 @@ func TestResolveExcludes(t *testing.T) {
|
||||
// labelAddSuffixForTypeMapper returns a LabelMapper that adds suffix to label name for modules of
|
||||
// typ
|
||||
func labelAddSuffixForTypeMapper(suffix, typ string) LabelMapper {
|
||||
return func(omc OtherModuleContext, label string) (string, bool) {
|
||||
m, ok := omc.ModuleFromName(label)
|
||||
return func(omc OtherModuleContext, label Label) (string, bool) {
|
||||
m, ok := omc.ModuleFromName(label.Label)
|
||||
if !ok {
|
||||
return label, false
|
||||
return label.Label, false
|
||||
}
|
||||
mTyp := omc.OtherModuleType(m)
|
||||
if typ == mTyp {
|
||||
return label + suffix, true
|
||||
return label.Label + suffix, true
|
||||
}
|
||||
return label, false
|
||||
return label.Label, false
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user