Merge "Dedup checks for module being in versioned sdk snapshot"
This commit is contained in:
2
cc/cc.go
2
cc/cc.go
@@ -3539,7 +3539,7 @@ func (c *Module) IsInstallableToApex() bool {
|
||||
if lib := c.library; lib != nil {
|
||||
// Stub libs and prebuilt libs in a versioned SDK are not
|
||||
// installable to APEX even though they are shared libs.
|
||||
return lib.shared() && !lib.buildStubs() && c.ContainingSdk().Unversioned()
|
||||
return lib.shared() && !lib.buildStubs() && !android.IsModuleInVersionedSdk(c)
|
||||
} else if _, ok := c.linker.(testPerSrc); ok {
|
||||
return true
|
||||
}
|
||||
|
@@ -211,7 +211,7 @@ func IsValidSharedDependency(dependency android.Module) bool {
|
||||
|
||||
// Discard versioned members of SDK snapshots, because they will conflict with
|
||||
// unversioned ones.
|
||||
if sdkMember, ok := dependency.(android.SdkAware); ok && !sdkMember.ContainingSdk().Unversioned() {
|
||||
if android.IsModuleInVersionedSdk(dependency) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
@@ -200,7 +200,7 @@ func (prebuilt *Import) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
dexpreoptEntries := prebuilt.dexpreopter.AndroidMkEntriesForApex()
|
||||
return append(dexpreoptEntries, android.AndroidMkEntries{Disabled: true})
|
||||
}
|
||||
if !prebuilt.ContainingSdk().Unversioned() {
|
||||
if android.IsModuleInVersionedSdk(prebuilt) {
|
||||
return []android.AndroidMkEntries{android.AndroidMkEntries{
|
||||
Disabled: true,
|
||||
}}
|
||||
|
Reference in New Issue
Block a user