Merge "Don't create a new module for bp2build conversion." am: 380dbb9327
am: 680bd2dd0a
am: 429f29b360
am: d97dfbe9e6
am: 1637e4345f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1792714 Change-Id: If86018fe24efdb5bbe5cce50bc20b58e0f17ded6
This commit is contained in:
20
java/app.go
20
java/app.go
@@ -1385,18 +1385,6 @@ type bazelAndroidAppCertificateAttributes struct {
|
||||
Certificate string
|
||||
}
|
||||
|
||||
type bazelAndroidAppCertificate struct {
|
||||
android.BazelTargetModuleBase
|
||||
bazelAndroidAppCertificateAttributes
|
||||
}
|
||||
|
||||
func BazelAndroidAppCertificateFactory() android.Module {
|
||||
module := &bazelAndroidAppCertificate{}
|
||||
module.AddProperties(&module.bazelAndroidAppCertificateAttributes)
|
||||
android.InitBazelTargetModule(module)
|
||||
return module
|
||||
}
|
||||
|
||||
func AndroidAppCertificateBp2Build(ctx android.TopDownMutatorContext) {
|
||||
module, ok := ctx.Module().(*AndroidAppCertificate)
|
||||
if !ok {
|
||||
@@ -1428,11 +1416,5 @@ func androidAppCertificateBp2BuildInternal(ctx android.TopDownMutatorContext, mo
|
||||
Bzl_load_location: "//build/bazel/rules:android_app_certificate.bzl",
|
||||
}
|
||||
|
||||
ctx.CreateBazelTargetModule(BazelAndroidAppCertificateFactory, module.Name(), props, attrs)
|
||||
ctx.CreateBazelTargetModule(module.Name(), props, attrs)
|
||||
}
|
||||
|
||||
func (m *bazelAndroidAppCertificate) Name() string {
|
||||
return m.BaseModuleName()
|
||||
}
|
||||
|
||||
func (m *bazelAndroidAppCertificate) GenerateAndroidBuildActions(ctx android.ModuleContext) {}
|
||||
|
Reference in New Issue
Block a user