Merge changes I9f8df94f,I2d7f5c56,I0ebb7381,Ieefcfc1a
* changes: Consolidate *MutatorContext and ModuleContext into BaseModuleContext Consolidate baseContext, BaseContext, and BaseModuleContext Rename ModuleBase receivers Remove repetition in android package names
This commit is contained in:
8
cc/cc.go
8
cc/cc.go
@@ -278,7 +278,7 @@ type ModuleContext interface {
|
||||
}
|
||||
|
||||
type BaseModuleContext interface {
|
||||
android.BaseContext
|
||||
android.BaseModuleContext
|
||||
ModuleContextIntf
|
||||
}
|
||||
|
||||
@@ -641,7 +641,7 @@ func installToBootstrap(name string, config android.Config) bool {
|
||||
}
|
||||
|
||||
type baseModuleContext struct {
|
||||
android.BaseContext
|
||||
android.BaseModuleContext
|
||||
moduleContextImpl
|
||||
}
|
||||
|
||||
@@ -1040,7 +1040,7 @@ func (c *Module) GenerateAndroidBuildActions(actx android.ModuleContext) {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Module) toolchain(ctx android.BaseContext) config.Toolchain {
|
||||
func (c *Module) toolchain(ctx android.BaseModuleContext) config.Toolchain {
|
||||
if c.cachedToolchain == nil {
|
||||
c.cachedToolchain = config.FindToolchain(ctx.Os(), ctx.Arch())
|
||||
}
|
||||
@@ -1161,7 +1161,7 @@ func (c *Module) deps(ctx DepsContext) Deps {
|
||||
|
||||
func (c *Module) beginMutator(actx android.BottomUpMutatorContext) {
|
||||
ctx := &baseModuleContext{
|
||||
BaseContext: actx,
|
||||
BaseModuleContext: actx,
|
||||
moduleContextImpl: moduleContextImpl{
|
||||
mod: c,
|
||||
},
|
||||
|
@@ -121,7 +121,7 @@ func intMax(a int, b int) int {
|
||||
}
|
||||
}
|
||||
|
||||
func normalizeNdkApiLevel(ctx android.BaseContext, apiLevel string,
|
||||
func normalizeNdkApiLevel(ctx android.BaseModuleContext, apiLevel string,
|
||||
arch android.Arch) (string, error) {
|
||||
|
||||
if apiLevel == "current" {
|
||||
@@ -167,7 +167,7 @@ func getFirstGeneratedVersion(firstSupportedVersion string, platformVersion int)
|
||||
return strconv.Atoi(firstSupportedVersion)
|
||||
}
|
||||
|
||||
func shouldUseVersionScript(ctx android.BaseContext, stub *stubDecorator) (bool, error) {
|
||||
func shouldUseVersionScript(ctx android.BaseModuleContext, stub *stubDecorator) (bool, error) {
|
||||
// unversioned_until is normally empty, in which case we should use the version script.
|
||||
if String(stub.properties.Unversioned_until) == "" {
|
||||
return true, nil
|
||||
|
Reference in New Issue
Block a user