Merge "Rename ApexName to ApexVariationName"
This commit is contained in:
10
cc/cc.go
10
cc/cc.go
@@ -344,7 +344,7 @@ type ModuleContextIntf interface {
|
||||
isNDKStubLibrary() bool
|
||||
useClangLld(actx ModuleContext) bool
|
||||
isForPlatform() bool
|
||||
apexName() string
|
||||
apexVariationName() string
|
||||
apexSdkVersion() int
|
||||
hasStubsVariants() bool
|
||||
isStubs() bool
|
||||
@@ -1290,8 +1290,8 @@ func (ctx *moduleContextImpl) isForPlatform() bool {
|
||||
return ctx.mod.IsForPlatform()
|
||||
}
|
||||
|
||||
func (ctx *moduleContextImpl) apexName() string {
|
||||
return ctx.mod.ApexName()
|
||||
func (ctx *moduleContextImpl) apexVariationName() string {
|
||||
return ctx.mod.ApexVariationName()
|
||||
}
|
||||
|
||||
func (ctx *moduleContextImpl) apexSdkVersion() int {
|
||||
@@ -2390,7 +2390,7 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
||||
if ccDep.CcLibrary() && !libDepTag.static() {
|
||||
depIsStubs := ccDep.BuildStubs()
|
||||
depHasStubs := VersionVariantAvailable(c) && ccDep.HasStubsVariants()
|
||||
depInSameApex := android.DirectlyInApex(c.ApexName(), depName)
|
||||
depInSameApex := android.DirectlyInApex(c.ApexVariationName(), depName)
|
||||
depInPlatform := !android.DirectlyInAnyApex(ctx, depName)
|
||||
|
||||
var useThisDep bool
|
||||
@@ -2446,7 +2446,7 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
||||
// by default, use current version of LLNDK
|
||||
versionToUse := ""
|
||||
versions := stubsVersionsFor(ctx.Config())[depName]
|
||||
if c.ApexName() != "" && len(versions) > 0 {
|
||||
if c.ApexVariationName() != "" && len(versions) > 0 {
|
||||
// if this is for use_vendor apex && dep has stubsVersions
|
||||
// apply the same rule of apex sdk enforcement to choose right version
|
||||
var err error
|
||||
|
Reference in New Issue
Block a user