Soong: add "java_genrule_host" am: 8f9ab6a26b
am: 1bb9940f3e
Change-Id: I896dad87010f44b1504687d7f2bf402772a6aec0
This commit is contained in:
commit
afd657ab4d
1 changed files with 12 additions and 0 deletions
|
@ -21,6 +21,7 @@ import (
|
|||
|
||||
func init() {
|
||||
android.RegisterModuleType("java_genrule", genRuleFactory)
|
||||
android.RegisterModuleType("java_genrule_host", genRuleFactoryHost)
|
||||
}
|
||||
|
||||
// java_genrule is a genrule that can depend on other java_* objects.
|
||||
|
@ -33,3 +34,14 @@ func genRuleFactory() android.Module {
|
|||
|
||||
return module
|
||||
}
|
||||
|
||||
// java_genrule_host is a genrule that can depend on other java_* objects.
|
||||
// The cmd may be run multiple times, once for each of the different host/device
|
||||
// variations.
|
||||
func genRuleFactoryHost() android.Module {
|
||||
module := genrule.NewGenRule()
|
||||
|
||||
android.InitAndroidArchModule(module, android.HostSupported, android.MultilibCommon)
|
||||
|
||||
return module
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue