From e62432feee81ae5bccf443fb03e971cd7e82e7e1 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Wed, 24 Jul 2019 12:51:21 +0100 Subject: [PATCH] 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 --- android/defaults.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android/defaults.go b/android/defaults.go index d1d3b1864..9db0c3607 100644 --- a/android/defaults.go +++ b/android/defaults.go @@ -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{},