Consolidate baseContext, BaseContext, and BaseModuleContext
blueprint.BaseModuleContext is the set of methods available to all module-specific calls (GenerateBuildActions or mutators). The android package split the same functionality across baseContext (nee androidBaseContext), BaseModuleContext, and BaseContext. Consolidate all of them into android.BaseModuleContext. Test: m checkbuild Change-Id: I2d7f5c56fd4424032cb93edff6dc730ff33e4f1e
This commit is contained in:
@@ -27,7 +27,7 @@ import (
|
||||
// been applied.
|
||||
type LoadHookContext interface {
|
||||
// TODO: a new context that includes Config() but not Target(), etc.?
|
||||
BaseContext
|
||||
BaseModuleContext
|
||||
AppendProperties(...interface{})
|
||||
PrependProperties(...interface{})
|
||||
CreateModule(blueprint.ModuleFactory, ...interface{})
|
||||
@@ -36,7 +36,7 @@ type LoadHookContext interface {
|
||||
// Arch hooks are run after the module has been split into architecture variants, and can be used
|
||||
// to add architecture-specific properties.
|
||||
type ArchHookContext interface {
|
||||
BaseContext
|
||||
BaseModuleContext
|
||||
AppendProperties(...interface{})
|
||||
PrependProperties(...interface{})
|
||||
}
|
||||
|
Reference in New Issue
Block a user