Do not check the ABI stability of LL-NDK-Private am: f6dbd9c5f7

am: b95b70bf69

Change-Id: Id81bc2490f680a589dd572ca21c7212ac0b661a6
This commit is contained in:
Logan Chien
2019-01-17 07:42:49 -08:00
committed by android-build-merger

View File

@@ -244,6 +244,10 @@ type ModuleContextIntf interface {
useSdk() bool useSdk() bool
sdkVersion() string sdkVersion() string
useVndk() bool useVndk() bool
isNdk() bool
isLlndk() bool
isLlndkPublic() bool
isVndkPrivate() bool
isVndk() bool isVndk() bool
isVndkSp() bool isVndkSp() bool
isVndkExt() bool isVndkExt() bool
@@ -473,6 +477,25 @@ func (c *Module) useVndk() bool {
return c.Properties.UseVndk return c.Properties.UseVndk
} }
func (c *Module) isNdk() bool {
return inList(c.Name(), ndkMigratedLibs)
}
func (c *Module) isLlndk() bool {
// Returns true for both LLNDK (public) and LLNDK-private libs.
return inList(c.Name(), llndkLibraries)
}
func (c *Module) isLlndkPublic() bool {
// Returns true only for LLNDK (public) libs.
return c.isLlndk() && !c.isVndkPrivate()
}
func (c *Module) isVndkPrivate() bool {
// Returns true for LLNDK-private, VNDK-SP-private, and VNDK-core-private.
return inList(c.Name(), vndkPrivateLibraries)
}
func (c *Module) isVndk() bool { func (c *Module) isVndk() bool {
if vndkdep := c.vndkdep; vndkdep != nil { if vndkdep := c.vndkdep; vndkdep != nil {
return vndkdep.isVndk() return vndkdep.isVndk()
@@ -604,6 +627,22 @@ func (ctx *moduleContextImpl) useVndk() bool {
return ctx.mod.useVndk() return ctx.mod.useVndk()
} }
func (ctx *moduleContextImpl) isNdk() bool {
return ctx.mod.isNdk()
}
func (ctx *moduleContextImpl) isLlndk() bool {
return ctx.mod.isLlndk()
}
func (ctx *moduleContextImpl) isLlndkPublic() bool {
return ctx.mod.isLlndkPublic()
}
func (ctx *moduleContextImpl) isVndkPrivate() bool {
return ctx.mod.isVndkPrivate()
}
func (ctx *moduleContextImpl) isVndk() bool { func (ctx *moduleContextImpl) isVndk() bool {
return ctx.mod.isVndk() return ctx.mod.isVndk()
} }
@@ -642,16 +681,16 @@ func (ctx *moduleContextImpl) shouldCreateVndkSourceAbiDump() bool {
// APEX variants do not need ABI dumps. // APEX variants do not need ABI dumps.
return false return false
} }
if inList(ctx.baseModuleName(), llndkLibraries) { if ctx.isNdk() {
return true return true
} }
if inList(ctx.baseModuleName(), ndkMigratedLibs) { if ctx.isLlndkPublic() {
return true return true
} }
if ctx.useVndk() && ctx.isVndk() { if ctx.useVndk() && ctx.isVndk() && !ctx.isVndkPrivate() {
// Return true if this is VNDK-core, VNDK-SP, or VNDK-Ext and this is not // Return true if this is VNDK-core, VNDK-SP, or VNDK-Ext and this is not
// VNDK-private. // VNDK-private.
return Bool(ctx.mod.VendorProperties.Vendor_available) || ctx.isVndkExt() return true
} }
return false return false
} }