Merge "Extend RegistrationContext to support pre/post deps mutators"

am: f5f1ecb746

Change-Id: I5a5e250417fc5d5110df40f9be78cb9cd8836123
This commit is contained in:
Paul Duffin 2019-12-19 15:08:51 -08:00 committed by android-build-merger
commit 4d6b0afa0d

View file

@ -125,6 +125,8 @@ type RegistrationContext interface {
RegisterModuleType(name string, factory ModuleFactory)
RegisterSingletonType(name string, factory SingletonFactory)
PreArchMutators(f RegisterMutatorFunc)
PreDepsMutators(f RegisterMutatorFunc)
PostDepsMutators(f RegisterMutatorFunc)
}
// Used to register build components from an init() method, e.g.
@ -175,3 +177,11 @@ func (ctx *initRegistrationContext) RegisterSingletonType(name string, factory S
func (ctx *initRegistrationContext) PreArchMutators(f RegisterMutatorFunc) {
PreArchMutators(f)
}
func (ctx *initRegistrationContext) PreDepsMutators(f RegisterMutatorFunc) {
PreDepsMutators(f)
}
func (ctx *initRegistrationContext) PostDepsMutators(f RegisterMutatorFunc) {
PostDepsMutators(f)
}