aboutsummaryrefslogtreecommitdiffstats
path: root/android/module.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/module.go')
-rw-r--r--android/module.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go
index 6a796227..17ddb050 100644
--- a/android/module.go
+++ b/android/module.go
@@ -129,6 +129,7 @@ type ModuleContext interface {
AddMissingDependencies(deps []string)
InstallInData() bool
+ InstallInTestcases() bool
InstallInSanitizerDir() bool
InstallInRecovery() bool
@@ -185,6 +186,7 @@ type Module interface {
Enabled() bool
Target() Target
InstallInData() bool
+ InstallInTestcases() bool
InstallInSanitizerDir() bool
InstallInRecovery() bool
SkipInstall()
@@ -302,6 +304,9 @@ type commonProperties struct {
SkipInstall bool `blueprint:"mutated"`
NamespaceExportedToMake bool `blueprint:"mutated"`
+
+ // Whether this module provides a boot jar
+ BootJarProvider bool `blueprint:"mutated"`
}
type hostAndDeviceProperties struct {
@@ -519,6 +524,10 @@ func (a *ModuleBase) Name() string {
return String(a.nameProperties.Name)
}
+func (a *ModuleBase) BootJarProvider() bool {
+ return a.commonProperties.BootJarProvider
+}
+
// BaseModuleName returns the name of the module as specified in the blueprints file.
func (a *ModuleBase) BaseModuleName() string {
return String(a.nameProperties.Name)
@@ -656,6 +665,10 @@ func (p *ModuleBase) InstallInData() bool {
return false
}
+func (p *ModuleBase) InstallInTestcases() bool {
+ return false
+}
+
func (p *ModuleBase) InstallInSanitizerDir() bool {
return false
}
@@ -1252,6 +1265,10 @@ func (a *androidModuleContext) InstallInData() bool {
return a.module.InstallInData()
}
+func (a *androidModuleContext) InstallInTestcases() bool {
+ return a.module.InstallInTestcases()
+}
+
func (a *androidModuleContext) InstallInSanitizerDir() bool {
return a.module.InstallInSanitizerDir()
}