Merge "Only output make targets for uninstallable static libs in the APEX unavailable-to-platform case."

This commit is contained in:
Martin Stjernholm
2020-08-07 11:30:29 +00:00
committed by Gerrit Code Review
7 changed files with 28 additions and 23 deletions

View File

@@ -286,10 +286,8 @@ func (library *libraryDecorator) AndroidMkEntries(ctx AndroidMkContext, entries
entries.SubName = "." + library.stubsVersion()
}
entries.ExtraEntries = append(entries.ExtraEntries, func(entries *android.AndroidMkEntries) {
// Note library.skipInstall() has a special case to get here for static
// libraries that otherwise would have skipped installation and hence not
// have executed AndroidMkEntries at all. The reason is to ensure they get
// a NOTICE file make target which other libraries might depend on.
// library.makeUninstallable() depends on this to bypass SkipInstall() for
// static libraries.
entries.SetBool("LOCAL_UNINSTALLABLE_MODULE", true)
if library.buildStubs() {
entries.SetBool("LOCAL_NO_NOTICE_FILE", true)