Use one mutator for all bp2build conversion.
Each conversion required defining a separate mutator, which will each
operate on _all_ modules and requires each to repeat checks whether the
mutator should operator. Instead, we introduce a single mutator and
modules can define a ConvertWithBp2build to implement bp2build
conversion for that module.
Test: bp2build.sh
Bug: 183079158
Change-Id: I99d4b51f441c2903879092c5b56313d606d4338d
diff --git a/android/defaults.go b/android/defaults.go
index d2b351d..7b3d38c 100644
--- a/android/defaults.go
+++ b/android/defaults.go
@@ -173,6 +173,10 @@
func (d *DefaultsModuleBase) GenerateAndroidBuildActions(ctx ModuleContext) {
}
+// ConvertWithBp2build to fulfill Bazelable interface; however, at this time defaults module are
+// *NOT* converted with bp2build
+func (defaultable *DefaultsModuleBase) ConvertWithBp2build(ctx TopDownMutatorContext) {}
+
func InitDefaultsModule(module DefaultsModule) {
commonProperties := &commonProperties{}