Merge "Add some comments for VNDK / vendor snapshots"

This commit is contained in:
Treehugger Robot
2020-12-11 00:56:47 +00:00
committed by Gerrit Code Review
7 changed files with 997 additions and 854 deletions

View File

@@ -1601,7 +1601,7 @@ func (c *Module) GenerateAndroidBuildActions(actx android.ModuleContext) {
// glob exported headers for snapshot, if BOARD_VNDK_VERSION is current.
if i, ok := c.linker.(snapshotLibraryInterface); ok && ctx.DeviceConfig().VndkVersion() == "current" {
if isSnapshotAware(ctx, c, apexInfo) {
if shouldCollectHeadersForSnapshot(ctx, c, apexInfo) {
i.collectHeadersForSnapshot(ctx)
}
}