Merge "VNDK snapshot modules must have vndk subdirectory" am: d40471c7c8

am: b94713329c

Change-Id: I501e21f65d44c74e8ad2a7a98dd7c1797e7aa2d1
This commit is contained in:
Justin Yun
2018-01-19 07:59:31 +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)
}