Merge "Don't install host or VNDK libs to the NDK."

am: d0e4cc1dc4

Change-Id: If62410d3a4a42c233309e995a8660c66ca6dc34e
This commit is contained in:
Dan Albert
2017-12-15 23:07:49 +00:00
committed by android-build-merger

View File

@@ -733,7 +733,8 @@ func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) {
library.baseInstaller.install(ctx, file)
}
if Bool(library.Properties.Static_ndk_lib) && library.static() {
if Bool(library.Properties.Static_ndk_lib) && library.static() &&
!ctx.useVndk() && ctx.Device() {
installPath := getNdkSysrootBase(ctx).Join(
ctx, "usr/lib", ctx.toolchain().ClangTriple(), file.Base())