Merge "Provide reason for unconverted bp2build modules"

This commit is contained in:
Christopher Parsons
2023-06-16 13:49:49 +00:00
committed by Gerrit Code Review
15 changed files with 431 additions and 83 deletions

View File

@@ -24,6 +24,7 @@ import (
"strings"
"sync"
"android/soong/ui/metrics/bp2build_metrics_proto"
"github.com/google/blueprint"
"github.com/google/blueprint/proptools"
@@ -2232,6 +2233,7 @@ type bazelSdkLibraryAttributes struct {
// java_sdk_library bp2build converter
func (module *SdkLibrary) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
if ctx.ModuleType() != "java_sdk_library" {
ctx.MarkBp2buildUnconvertible(bp2build_metrics_proto.UnconvertedReasonType_TYPE_UNSUPPORTED, "")
return
}