Merge "Fix vndk snapshot suffix on Makefile"

This commit is contained in:
Treehugger Robot 2020-03-19 07:40:51 +00:00 committed by Gerrit Code Review
commit ddd7d0cac9
1 changed files with 6 additions and 1 deletions

View File

@ -2433,8 +2433,13 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
if c, ok := ccDep.(*Module); ok {
// Use base module name for snapshots when exporting to Makefile.
if c.isSnapshotPrebuilt() && !c.IsVndk() {
if c.isSnapshotPrebuilt() {
baseName := c.BaseModuleName()
if c.IsVndk() {
return baseName + ".vendor"
}
if vendorSuffixModules[baseName] {
return baseName + ".vendor"
} else {