Add DefaultsModule interface

Changes the InitDefaultsModule method from taking a DefaultableModule
to taking a DefaultsModule in preparation for adding visibility support
to defaults modules.

Bug: 130796911
Test: m nothing
Change-Id: I1d459da1017ae7f2654e7eb275cb424e52d85730
This commit is contained in:
Paul Duffin 2019-07-24 12:51:21 +01:00
parent 7df7fb0dff
commit e62432feee
1 changed files with 6 additions and 1 deletions

View File

@ -107,6 +107,11 @@ func (d *DefaultsModuleBase) isDefaults() bool {
return true
}
type DefaultsModule interface {
Module
Defaults
}
func (d *DefaultsModuleBase) properties() []interface{} {
return d.defaultableProperties
}
@ -114,7 +119,7 @@ func (d *DefaultsModuleBase) properties() []interface{} {
func (d *DefaultsModuleBase) GenerateAndroidBuildActions(ctx ModuleContext) {
}
func InitDefaultsModule(module DefaultableModule) {
func InitDefaultsModule(module DefaultsModule) {
module.AddProperties(
&hostAndDeviceProperties{},
&commonProperties{},