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,13 +111,11 @@ func (p *vndkPrebuiltLibraryDecorator) link(ctx ModuleContext,
func (p *vndkPrebuiltLibraryDecorator) install(ctx ModuleContext, file android.Path) { func (p *vndkPrebuiltLibraryDecorator) install(ctx ModuleContext, file android.Path) {
if p.shared() { if p.shared() {
if ctx.Device() && ctx.useVndk() {
if ctx.isVndkSp() { if ctx.isVndkSp() {
p.baseInstaller.subDir = "vndk-sp-" + p.version() p.baseInstaller.subDir = "vndk-sp-" + p.version()
} else if ctx.isVndk() { } else if ctx.isVndk() {
p.baseInstaller.subDir = "vndk-" + p.version() p.baseInstaller.subDir = "vndk-" + p.version()
} }
}
p.baseInstaller.install(ctx, file) p.baseInstaller.install(ctx, file)
} }
} }