|
@@ -159,6 +159,8 @@ type StaticOrSharedProperties struct {
|
|
|
Export_static_lib_headers []string `android:"arch_variant"`
|
|
|
|
|
|
Apex_available []string `android:"arch_variant"`
|
|
|
+
|
|
|
+ Installable *bool `android:"arch_variant"`
|
|
|
}
|
|
|
|
|
|
type LibraryMutatedProperties struct {
|
|
@@ -1046,6 +1048,8 @@ type libraryInterface interface {
|
|
|
availableFor(string) bool
|
|
|
|
|
|
getAPIListCoverageXMLPath() android.ModuleOutPath
|
|
|
+
|
|
|
+ installable() *bool
|
|
|
}
|
|
|
|
|
|
type versionedInterface interface {
|
|
@@ -1971,6 +1975,15 @@ func (library *libraryDecorator) availableFor(what string) bool {
|
|
|
return android.CheckAvailableForApex(what, list)
|
|
|
}
|
|
|
|
|
|
+func (library *libraryDecorator) installable() *bool {
|
|
|
+ if library.static() {
|
|
|
+ return library.StaticProperties.Static.Installable
|
|
|
+ } else if library.shared() {
|
|
|
+ return library.SharedProperties.Shared.Installable
|
|
|
+ }
|
|
|
+ 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
|