Merge "VNDK snapshot modules must have vndk subdirectory"

am: d40471c7c8

Change-Id: I14eeafb91e36aa835e8b5383dec04d89f780dedd
This commit is contained in:
Justin Yun
2018-01-19 07:52:25 +00:00
committed by android-build-merger

View File

@@ -111,12 +111,10 @@ func (p *vndkPrebuiltLibraryDecorator) link(ctx ModuleContext,
func (p *vndkPrebuiltLibraryDecorator) install(ctx ModuleContext, file android.Path) {
if p.shared() {
if ctx.Device() && ctx.useVndk() {
if ctx.isVndkSp() {
p.baseInstaller.subDir = "vndk-sp-" + p.version()
} else if ctx.isVndk() {
p.baseInstaller.subDir = "vndk-" + p.version()
}
if ctx.isVndkSp() {
p.baseInstaller.subDir = "vndk-sp-" + p.version()
} else if ctx.isVndk() {
p.baseInstaller.subDir = "vndk-" + p.version()
}
p.baseInstaller.install(ctx, file)
}