Merge "Only output make targets for uninstallable static libs in the APEX unavailable-to-platform case." am: 9f381d5ce3 am: 0be556121d

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1393187

Change-Id: Ie961e81a936ff5cd2e60af10bf2c9168334e9789
This commit is contained in:
Martin Stjernholm
2020-08-07 11:49:27 +00:00
committed by Automerger Merge Worker
7 changed files with 28 additions and 23 deletions

View File

@@ -257,6 +257,7 @@ type Module interface {
InstallForceOS() *OsType
SkipInstall()
IsSkipInstall() bool
MakeUninstallable()
ExportedToMake() bool
InitRc() Paths
VintfFragments() Paths
@@ -1047,6 +1048,15 @@ func (m *ModuleBase) IsSkipInstall() bool {
return m.commonProperties.SkipInstall == true
}
// Similar to SkipInstall, but if the AndroidMk entry would set
// LOCAL_UNINSTALLABLE_MODULE then this variant may still output that entry
// rather than leaving it out altogether. That happens in cases where it would
// have other side effects, in particular when it adds a NOTICE file target,
// which other install targets might depend on.
func (m *ModuleBase) MakeUninstallable() {
m.SkipInstall()
}
func (m *ModuleBase) ExportedToMake() bool {
return m.commonProperties.NamespaceExportedToMake
}