summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-10-08 17:47:28 -0700
committer Colin Cross <ccross@android.com> 2021-10-08 17:52:32 -0700
commit99c3ed94b8cadb84612e22e8ba563070ea434973 (patch)
tree1e6a2b87c8de55100f6ca5a9e0e4889a673beb7c
parent2649c7913a541c0e0cc64f01a764139f76862241 (diff)
Allow defaults in java_genrule modules
Call InitDefaultableModule in java_genrule factories to allow the defaults property to be used. Bug: 202547639 Test: m checkbuild Change-Id: I3a5960304af3e9babb30d036d63016087000d773
-rw-r--r--java/genrule.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/genrule.go b/java/genrule.go
index e0a9c8faf..16743b357 100644
--- a/java/genrule.go
+++ b/java/genrule.go
@@ -64,6 +64,7 @@ func genRuleFactory() android.Module {
module := genrule.NewGenRule()
android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibCommon)
+ android.InitDefaultableModule(module)
return module
}
@@ -76,6 +77,7 @@ func genRuleFactoryHost() android.Module {
module := genrule.NewGenRule()
android.InitAndroidArchModule(module, android.HostSupported, android.MultilibCommon)
+ android.InitDefaultableModule(module)
return module
}