Dedup java genrule module type registration

Test: m checkbuild
Bug: 146540677
Change-Id: I17f24fe145b4bb453e82aabaecc9c251f2b9769b
This commit is contained in:
Paul Duffin
2019-12-19 10:28:56 +00:00
parent 884363e782
commit b0f850784a
2 changed files with 7 additions and 3 deletions

View File

@@ -20,8 +20,12 @@ import (
)
func init() {
android.RegisterModuleType("java_genrule", genRuleFactory)
android.RegisterModuleType("java_genrule_host", genRuleFactoryHost)
RegisterGenRuleBuildComponents(android.InitRegistrationContext)
}
func RegisterGenRuleBuildComponents(ctx android.RegistrationContext) {
ctx.RegisterModuleType("java_genrule", genRuleFactory)
ctx.RegisterModuleType("java_genrule_host", genRuleFactoryHost)
}
// java_genrule is a genrule that can depend on other java_* objects.