Merge "Revert "Export non-apex variants of modules to make""

This commit is contained in:
Ioana Alexandru
2023-03-20 11:08:55 +00:00
committed by Gerrit Code Review
9 changed files with 42 additions and 49 deletions

View File

@@ -2439,6 +2439,17 @@ func (library *libraryDecorator) installable() *bool {
return nil
}
func (library *libraryDecorator) makeUninstallable(mod *Module) {
if library.static() && library.buildStatic() && !library.buildStubs() {
// If we're asked to make a static library uninstallable we don't do
// anything since AndroidMkEntries always sets LOCAL_UNINSTALLABLE_MODULE
// for these entries. This is done to still get the make targets for NOTICE
// files from notice_files.mk, which other libraries might depend on.
return
}
mod.ModuleBase.MakeUninstallable()
}
func (library *libraryDecorator) getPartition() string {
return library.path.Partition()
}