Don't install header libraries

Use library.shared() instead of !ctx.static() to avoid installing
header libraries when handling installation in soong.

Test: check build.ninja for installed .a files
Change-Id: I8c59d5845dd32419644b7ccdab3c341bc4bf3617
This commit is contained in:
Colin Cross 2017-04-14 15:42:53 -07:00
parent 4247f0d0ed
commit c43ae770c5
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ func (library *libraryDecorator) toc() android.OptionalPath {
}
func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) {
if !ctx.static() {
if library.shared() {
library.baseInstaller.install(ctx, file)
}
}