Soong: add "java_genrule_host"
Bug: 78030154 Test: Tested with an internal test module. Change-Id: Ifaefb7cba2eb491b62fa3b398fee931ab667575f
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
android.RegisterModuleType("java_genrule", genRuleFactory)
|
android.RegisterModuleType("java_genrule", genRuleFactory)
|
||||||
|
android.RegisterModuleType("java_genrule_host", genRuleFactoryHost)
|
||||||
}
|
}
|
||||||
|
|
||||||
// java_genrule is a genrule that can depend on other java_* objects.
|
// java_genrule is a genrule that can depend on other java_* objects.
|
||||||
@@ -33,3 +34,14 @@ func genRuleFactory() android.Module {
|
|||||||
|
|
||||||
return 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
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user