Convert java_aconfig_library to bazel.
Bug: 297357579 Test: Unit test and AconfigJavaHostTest Change-Id: Icf944cc0b2a7382107923d49b2d2ff0eb4113638
This commit is contained in:
@@ -35,6 +35,8 @@ type GeneratedJavaLibraryCallbacks interface {
|
||||
// Called from inside GenerateAndroidBuildActions. Add the build rules to
|
||||
// make the srcjar, and return the path to it.
|
||||
GenerateSourceJarBuildActions(module *GeneratedJavaLibraryModule, ctx android.ModuleContext) android.Path
|
||||
|
||||
Bp2build(ctx android.Bp2buildMutatorContext, module *GeneratedJavaLibraryModule)
|
||||
}
|
||||
|
||||
// GeneratedJavaLibraryModuleFactory provides a utility for modules that are generated
|
||||
@@ -108,3 +110,7 @@ func (module *GeneratedJavaLibraryModule) GenerateAndroidBuildActions(ctx androi
|
||||
module.Library.properties.Generated_srcjars = append(module.Library.properties.Generated_srcjars, srcJarPath)
|
||||
module.Library.GenerateAndroidBuildActions(ctx)
|
||||
}
|
||||
|
||||
func (module *GeneratedJavaLibraryModule) ConvertWithBp2build(ctx android.Bp2buildMutatorContext) {
|
||||
module.callbacks.Bp2build(ctx, module)
|
||||
}
|
||||
|
Reference in New Issue
Block a user