Lines Matching refs:library

339 	module, library := NewLibrary(android.HostAndDeviceSupported)
340 library.BuildOnlyStatic()
348 module, library := NewLibrary(android.HostAndDeviceSupported)
349 library.BuildOnlyShared()
357 module, library := NewLibrary(android.HostSupported)
358 library.BuildOnlyStatic()
365 module, library := NewLibrary(android.HostSupported)
366 library.BuildOnlyShared()
687 func (library *libraryDecorator) linkerProps() []interface{} {
689 props = append(props, library.baseLinker.linkerProps()...)
691 &library.Properties,
692 &library.MutatedProperties,
693 &library.flagExporter.Properties,
694 &library.stripper.StripProperties)
696 if library.MutatedProperties.BuildShared {
697 props = append(props, &library.SharedProperties)
699 if library.MutatedProperties.BuildStatic {
700 props = append(props, &library.StaticProperties)
709 func (library *libraryDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags {
710 flags = library.baseLinker.linkerFlags(ctx, flags)
719 if library.static() {
720 flags.Local.CFlags = append(flags.Local.CFlags, library.StaticProperties.Static.Cflags...)
721 } else if library.shared() {
722 flags.Local.CFlags = append(flags.Local.CFlags, library.SharedProperties.Shared.Cflags...)
725 if library.shared() {
726 libName := library.getLibName(ctx)
762 func (library *libraryDecorator) compilerFlags(ctx ModuleContext, flags Flags, deps PathDeps) Flags…
763 exportIncludeDirs := library.flagExporter.exportedIncludes(ctx)
770 flags = library.baseCompiler.compilerFlags(ctx, flags, deps)
777 if library.buildStubs() {
801 func (library *libraryDecorator) headerAbiCheckerEnabled() bool {
802 return Bool(library.Properties.Header_abi_checker.Enabled)
805 func (library *libraryDecorator) headerAbiCheckerExplicitlyDisabled() bool {
806 return !BoolDefault(library.Properties.Header_abi_checker.Enabled, true)
809 func (library *libraryDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) Objects {
817 if library.stubsVersion() != "" {
818 vndkVer = library.stubsVersion()
820 …objs, versionScript := compileStubLibrary(ctx, flags, String(library.Properties.Llndk.Symbol_file)…
821 if !Bool(library.Properties.Llndk.Unversioned) {
822 library.versionScriptPath = android.OptionalPathForPath(versionScript)
827 …objs, versionScript := compileStubLibrary(ctx, flags, String(library.Properties.Vendor_public_libr…
828 if !Bool(library.Properties.Vendor_public_library.Unversioned) {
829 library.versionScriptPath = android.OptionalPathForPath(versionScript)
833 if library.buildStubs() {
834 symbolFile := String(library.Properties.Stubs.Symbol_file)
839 …rsionScript := compileStubLibrary(ctx, flags, String(library.Properties.Stubs.Symbol_file), librar…
840 library.versionScriptPath = android.OptionalPathForPath(versionScript)
844 if !library.buildShared() && !library.buildStatic() {
845 if len(library.baseCompiler.Properties.Srcs) > 0 {
848 if len(library.StaticProperties.Static.Srcs) > 0 {
851 if len(library.SharedProperties.Shared.Srcs) > 0 {
856 if library.sabi.shouldCreateSourceAbiDump() {
857 exportIncludeDirs := library.flagExporter.exportedIncludes(ctx)
862 for _, reexportedInclude := range library.sabi.Properties.ReexportedIncludes {
866 totalLength := len(library.baseCompiler.Properties.Srcs) + len(deps.GeneratedSources) +
867 len(library.SharedProperties.Shared.Srcs) + len(library.StaticProperties.Static.Srcs)
872 objs := library.baseCompiler.compile(ctx, flags, deps)
873 library.reuseObjects = objs
876 if library.static() {
877 srcs := android.PathsForModuleSrc(ctx, library.StaticProperties.Static.Srcs)
879 srcs, library.baseCompiler.pathDeps, library.baseCompiler.cFlagsDeps))
880 } else if library.shared() {
881 srcs := android.PathsForModuleSrc(ctx, library.SharedProperties.Shared.Srcs)
883 srcs, library.baseCompiler.pathDeps, library.baseCompiler.cFlagsDeps))
936 func (library *libraryDecorator) getLibNameHelper(baseModuleName string, inVendor bool, inProduct b…
937 name := library.libName
939 name = String(library.Properties.Stem)
947 suffix = String(library.Properties.Target.Vendor.Suffix)
949 suffix = String(library.Properties.Target.Product.Suffix)
952 suffix = String(library.Properties.Suffix)
960 func (library *libraryDecorator) getLibName(ctx BaseModuleContext) string {
961 name := library.getLibNameHelper(ctx.baseModuleName(), ctx.inVendor(), ctx.inProduct())
971 if ctx.Host() && Bool(library.Properties.Unique_host_soname) {
982 func (library *libraryDecorator) linkerInit(ctx BaseModuleContext) {
984 if library.baseLinker.sanitize.inSanitizerDir() {
987 library.baseInstaller.location = location
988 library.baseLinker.linkerInit(ctx)
991 library.baseLinker.dynamicProperties.BuildStubs = library.buildStubs()
993 if library.buildStubs() {
1006 func (library *libraryDecorator) compilerDeps(ctx DepsContext, deps Deps) Deps {
1013 deps = library.baseCompiler.compilerDeps(ctx, deps)
1018 func (library *libraryDecorator) linkerDeps(ctx DepsContext, deps Deps) Deps {
1022 deps.HeaderLibs = append([]string(nil), library.Properties.Llndk.Export_llndk_headers...)
1023 …deps.ReexportHeaderLibHeaders = append([]string(nil), library.Properties.Llndk.Export_llndk_header…
1027 headers := library.Properties.Vendor_public_library.Export_public_headers
1033 if library.static() {
1035 if library.StaticProperties.Static.System_shared_libs != nil {
1036library.baseLinker.Properties.System_shared_libs = library.StaticProperties.Static.System_shared_l…
1038 } else if library.shared() {
1040 if library.SharedProperties.Shared.System_shared_libs != nil {
1041library.baseLinker.Properties.System_shared_libs = library.SharedProperties.Shared.System_shared_l…
1045 deps = library.baseLinker.linkerDeps(ctx, deps)
1047 if library.static() {
1049 library.StaticProperties.Static.Whole_static_libs...)
1050 deps.StaticLibs = append(deps.StaticLibs, library.StaticProperties.Static.Static_libs...)
1051 deps.SharedLibs = append(deps.SharedLibs, library.StaticProperties.Static.Shared_libs...)
1053 …deps.ReexportSharedLibHeaders = append(deps.ReexportSharedLibHeaders, library.StaticProperties.Sta…
1054 …deps.ReexportStaticLibHeaders = append(deps.ReexportStaticLibHeaders, library.StaticProperties.Sta…
1055 } else if library.shared() {
1056 if ctx.toolchain().Bionic() && !Bool(library.baseLinker.Properties.Nocrt) {
1060 …deps.WholeStaticLibs = append(deps.WholeStaticLibs, library.SharedProperties.Shared.Whole_static_l…
1061 deps.StaticLibs = append(deps.StaticLibs, library.SharedProperties.Shared.Static_libs...)
1062 deps.SharedLibs = append(deps.SharedLibs, library.SharedProperties.Shared.Shared_libs...)
1064 …deps.ReexportSharedLibHeaders = append(deps.ReexportSharedLibHeaders, library.SharedProperties.Sha…
1065 …deps.ReexportStaticLibHeaders = append(deps.ReexportStaticLibHeaders, library.SharedProperties.Sha…
1068 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, library.baseLinker.Properties.Targ…
1069 …deps.SharedLibs = removeListFromList(deps.SharedLibs, library.baseLinker.Properties.Target.Vendor.…
1070 …deps.StaticLibs = removeListFromList(deps.StaticLibs, library.baseLinker.Properties.Target.Vendor.…
1071 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, library.baseLink…
1072 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, library.baseLink…
1075 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, library.baseLinker.Properties.Targ…
1076 …deps.SharedLibs = removeListFromList(deps.SharedLibs, library.baseLinker.Properties.Target.Product…
1077 …deps.StaticLibs = removeListFromList(deps.StaticLibs, library.baseLinker.Properties.Target.Product…
1078 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, library.baseLink…
1079 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, library.baseLink…
1082 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, library.baseLinker.Properties.Targ…
1083 …deps.SharedLibs = removeListFromList(deps.SharedLibs, library.baseLinker.Properties.Target.Recover…
1084 …deps.StaticLibs = removeListFromList(deps.StaticLibs, library.baseLinker.Properties.Target.Recover…
1085 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, library.baseLink…
1086 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, library.baseLink…
1089 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, library.baseLinker.Properties.Targ…
1090 …deps.SharedLibs = removeListFromList(deps.SharedLibs, library.baseLinker.Properties.Target.Ramdisk…
1091 …deps.StaticLibs = removeListFromList(deps.StaticLibs, library.baseLinker.Properties.Target.Ramdisk…
1092 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, library.baseLink…
1093 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, library.baseLink…
1096 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, library.baseLinker.Properties.Targ…
1097 …deps.SharedLibs = removeListFromList(deps.SharedLibs, library.baseLinker.Properties.Target.Vendor_…
1098 …deps.StaticLibs = removeListFromList(deps.StaticLibs, library.baseLinker.Properties.Target.Vendor_…
1099 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, library.baseLink…
1100 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, library.baseLink…
1106 func (library *libraryDecorator) linkerSpecifiedDeps(specifiedDeps specifiedDeps) specifiedDeps {
1107 specifiedDeps = library.baseLinker.linkerSpecifiedDeps(specifiedDeps)
1109 if library.static() {
1110 properties = library.StaticProperties.Static
1111 } else if library.shared() {
1112 properties = library.SharedProperties.Shared
1134 func (library *libraryDecorator) linkStatic(ctx ModuleContext,
1137 library.objects = deps.WholeStaticLibObjs.Copy()
1138 library.objects = library.objects.Append(objs)
1144 if Bool(library.baseLinker.Properties.Use_version_lib) {
1148 library.injectVersionSymbol(ctx, outputFile, versionedOutputFile)
1151 library.distFile = versionedOutputFile
1152 library.injectVersionSymbol(ctx, outputFile, versionedOutputFile)
1156 …transformObjToStaticLib(ctx, library.objects.objFiles, deps.WholeStaticLibsFromPrebuilts, builderF…
1158 library.coverageOutputFile = transformCoverageFilesToZip(ctx, library.objects, ctx.ModuleName())
1162 if library.static() {
1165 ReuseObjects: library.reuseObjects,
1166 Objects: library.objects,
1175 if library.header() {
1182 func (library *libraryDecorator) linkShared(ctx ModuleContext,
1188 …unexportedSymbols := ctx.ExpandOptionalSource(library.Properties.Unexported_symbols_list, "unexpor…
1189 …forceNotWeakSymbols := ctx.ExpandOptionalSource(library.Properties.Force_symbols_not_weak_list, "f…
1190 …forceWeakSymbols := ctx.ExpandOptionalSource(library.Properties.Force_symbols_weak_list, "force_sy…
1215 if library.versionScriptPath.Valid() {
1216 linkerScriptFlags := "-Wl,--version-script," + library.versionScriptPath.String()
1218 linkerDeps = append(linkerDeps, library.versionScriptPath.Path())
1221 fileName := library.getLibName(ctx) + flags.Toolchain.ShlibSuffix()
1238 library.tocFile = android.OptionalPathForPath(tocFile)
1242 needsStrip := library.stripper.NeedsStrip(ctx)
1243 if library.buildStubs() {
1253 library.stripper.StripExecutableOrSharedLib(ctx, outputFile, strippedOutputFile, stripFlags)
1255 library.unstrippedOutputFile = outputFile
1257 …outputFile = maybeInjectBoringSSLHash(ctx, outputFile, library.Properties.Inject_bssl_hash, fileNa…
1259 if Bool(library.baseLinker.Properties.Use_version_lib) {
1263 library.injectVersionSymbol(ctx, outputFile, versionedOutputFile)
1266 library.distFile = versionedOutputFile
1268 if library.stripper.NeedsStrip(ctx) {
1270 library.distFile = out
1271 library.stripper.StripExecutableOrSharedLib(ctx, versionedOutputFile, out, stripFlags)
1274 library.injectVersionSymbol(ctx, outputFile, versionedOutputFile)
1287 if Bool(library.Properties.Sort_bss_symbols_by_size) && !library.buildStubs() {
1294 …symbolOrderingFlag := library.baseLinker.sortBssSymbolsBySize(ctx, unsortedOutputFile, symbolOrder…
1309 library.coverageOutputFile = transformCoverageFilesToZip(ctx, objs, library.getLibName(ctx))
1310 library.linkSAbiDumpFiles(ctx, objs, fileName, unstrippedOutputFile)
1321 UnstrippedSharedLibrary: library.unstrippedOutputFile,
1322 CoverageSharedLibrary: library.coverageOutputFile,
1349 func (library *libraryDecorator) unstrippedOutputFilePath() android.Path {
1350 return library.unstrippedOutputFile
1353 func (library *libraryDecorator) disableStripping() {
1354 library.stripper.StripProperties.Strip.None = BoolPtr(true)
1357 func (library *libraryDecorator) nativeCoverage() bool {
1358 if library.header() || library.buildStubs() {
1364 func (library *libraryDecorator) coverageOutputFilePath() android.OptionalPath {
1365 return library.coverageOutputFile
1391 func (library *libraryDecorator) linkSAbiDumpFiles(ctx ModuleContext, objs Objects, fileName string…
1392 if library.sabi.shouldCreateSourceAbiDump() {
1403 exportIncludeDirs := library.flagExporter.exportedIncludes(ctx)
1408 for _, reexportedInclude := range library.sabi.Properties.ReexportedIncludes {
1412library.sAbiOutputFile = transformDumpToLinkedDump(ctx, objs.sAbiDumpFiles, soFile, fileName, expo…
1413 android.OptionalPathForModuleSrc(ctx, library.symbolFileForAbiCheck(ctx)),
1414 library.Properties.Header_abi_checker.Exclude_symbol_versions,
1415 library.Properties.Header_abi_checker.Exclude_symbol_tags)
1417 addLsdumpPath(classifySourceAbiDump(ctx) + ":" + library.sAbiOutputFile.String())
1421 library.sAbiDiff = sourceAbiDiff(ctx, library.sAbiOutputFile.Path(),
1423 Bool(library.Properties.Header_abi_checker.Check_all_apis),
1451 func (library *libraryDecorator) link(ctx ModuleContext,
1455 if len(library.Properties.Llndk.Export_preprocessed_headers) > 0 {
1460 for _, dir := range library.Properties.Llndk.Export_preprocessed_headers {
1463 library.addExportedGeneratedHeaders(installPaths.Paths()...)
1466 if Bool(library.Properties.Llndk.Export_headers_as_system) {
1467 library.reexportSystemDirs(genHeaderOutDir)
1469 library.reexportDirs(genHeaderOutDir)
1472 library.reexportDeps(timestampFiles...)
1477 if override := library.Properties.Llndk.Override_export_include_dirs; override != nil {
1478 library.flagExporter.Properties.Export_include_dirs = override
1481 if Bool(library.Properties.Llndk.Export_headers_as_system) {
1482 library.flagExporter.Properties.Export_system_include_dirs = append(
1483 library.flagExporter.Properties.Export_system_include_dirs,
1484 library.flagExporter.Properties.Export_include_dirs...)
1485 library.flagExporter.Properties.Export_include_dirs = nil
1492 …if override := library.Properties.Vendor_public_library.Override_export_include_dirs; override != …
1493 library.flagExporter.Properties.Export_include_dirs = override
1502 if library.static() || library.header() {
1503 out = library.linkStatic(ctx, flags, deps, objs)
1505 out = library.linkShared(ctx, flags, deps, objs)
1509 library.exportIncludes(ctx)
1510 library.reexportDirs(deps.ReexportedDirs...)
1511 library.reexportSystemDirs(deps.ReexportedSystemDirs...)
1512 library.reexportFlags(deps.ReexportedFlags...)
1513 library.reexportDeps(deps.ReexportedDeps...)
1514 library.addExportedGeneratedHeaders(deps.ReexportedGeneratedHeaders...)
1517 if Bool(library.Properties.Aidl.Export_aidl_headers) {
1518 if library.baseCompiler.hasSrcExt(".aidl") {
1520 library.reexportDirs(dir)
1522 library.reexportDeps(library.baseCompiler.aidlOrderOnlyDeps...)
1523 library.addExportedGeneratedHeaders(library.baseCompiler.aidlHeaders...)
1528 if Bool(library.Properties.Proto.Export_proto_headers) {
1529 if library.baseCompiler.hasSrcExt(".proto") {
1535 library.reexportDirs(includes...)
1537 library.reexportDeps(library.baseCompiler.protoOrderOnlyDeps...)
1538 library.addExportedGeneratedHeaders(library.baseCompiler.protoHeaders...)
1543 if library.baseCompiler.hasSrcExt(".sysprop") {
1545 if library.Properties.Sysprop.Platform != nil {
1546 isOwnerPlatform := Bool(library.Properties.Sysprop.Platform)
1558 …_, headers := android.FilterPathListPredicate(library.baseCompiler.syspropHeaders, func(path andro…
1564 library.reexportDirs(dir)
1565 library.reexportDeps(library.baseCompiler.syspropOrderOnlyDeps...)
1566 library.addExportedGeneratedHeaders(headers...)
1570 library.exportVersioningMacroIfNeeded(ctx)
1573 library.flagExporter.setProvider(ctx)
1578 func (library *libraryDecorator) exportVersioningMacroIfNeeded(ctx android.BaseModuleContext) {
1579 if library.buildStubs() && library.stubsVersion() != "" && !library.skipAPIDefine {
1581 apiLevel, err := android.ApiLevelFromUser(ctx, library.stubsVersion())
1585 library.reexportFlags("-D" + name + "=" + strconv.Itoa(apiLevel.FinalOrPreviewInt()))
1590 func (library *libraryDecorator) buildStatic() bool {
1591 return library.MutatedProperties.BuildStatic &&
1592 BoolDefault(library.StaticProperties.Static.Enabled, true)
1596 func (library *libraryDecorator) buildShared() bool {
1597 return library.MutatedProperties.BuildShared &&
1598 BoolDefault(library.SharedProperties.Shared.Enabled, true)
1601 func (library *libraryDecorator) objs() Objects {
1602 return library.objects
1605 func (library *libraryDecorator) reuseObjs() Objects {
1606 return library.reuseObjects
1609 func (library *libraryDecorator) toc() android.OptionalPath {
1610 return library.tocFile
1613 func (library *libraryDecorator) installSymlinkToRuntimeApex(ctx ModuleContext, file android.Path) {
1614 dir := library.baseInstaller.installDir(ctx)
1618library.postInstallCmds = append(library.postInstallCmds, makeSymlinkCmd(dirOnDevice, file.Base(),…
1621 func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) {
1622 if library.shared() {
1627 library.baseInstaller.subDir = "vndk-sp"
1629 library.baseInstaller.subDir = "vndk"
1647 library.checkSameCoreVariant = true
1649 library.useCoreVariant = true
1659 } else if library.hasStubsVariants() && !ctx.Host() && ctx.directlyInAnyApex() {
1664 if InstallToBootstrap(ctx.baseModuleName(), ctx.Config()) && !library.buildStubs() &&
1667 library.installSymlinkToRuntimeApex(ctx, file)
1669 library.baseInstaller.subDir = "bootstrap"
1676 library.baseInstaller.install(ctx, file)
1679 if Bool(library.Properties.Static_ndk_lib) && library.static() &&
1681 library.baseLinker.sanitize.isUnsanitizedVariant() &&
1693 library.ndkSysrootPath = installPath
1697 func (library *libraryDecorator) everInstallable() bool {
1700 return library.shared() || library.static()
1704 func (library *libraryDecorator) static() bool {
1705 return library.MutatedProperties.VariantIsStatic
1709 func (library *libraryDecorator) shared() bool {
1710 return library.MutatedProperties.VariantIsShared
1714 func (library *libraryDecorator) header() bool {
1716 return !library.static() && !library.shared()
1720 func (library *libraryDecorator) setStatic() {
1721 library.MutatedProperties.VariantIsStatic = true
1722 library.MutatedProperties.VariantIsShared = false
1726 func (library *libraryDecorator) setShared() {
1727 library.MutatedProperties.VariantIsStatic = false
1728 library.MutatedProperties.VariantIsShared = true
1732 func (library *libraryDecorator) BuildOnlyStatic() {
1733 library.MutatedProperties.BuildShared = false
1737 func (library *libraryDecorator) BuildOnlyShared() {
1738 library.MutatedProperties.BuildStatic = false
1743 func (library *libraryDecorator) HeaderOnly() {
1744 library.MutatedProperties.BuildShared = false
1745 library.MutatedProperties.BuildStatic = false
1749 func (library *libraryDecorator) hasLLNDKStubs() bool {
1750 return String(library.Properties.Llndk.Symbol_file) != ""
1754 func (library *libraryDecorator) hasLLNDKHeaders() bool {
1755 return Bool(library.Properties.Llndk.Llndk_headers)
1760 func (library *libraryDecorator) hasVendorPublicLibrary() bool {
1761 return String(library.Properties.Vendor_public_library.Symbol_file) != ""
1764 func (library *libraryDecorator) implementationModuleName(name string) string {
1768 func (library *libraryDecorator) buildStubs() bool {
1769 return library.MutatedProperties.BuildStubs
1772 func (library *libraryDecorator) symbolFileForAbiCheck(ctx ModuleContext) *string {
1773 if library.Properties.Header_abi_checker.Symbol_file != nil {
1774 return library.Properties.Header_abi_checker.Symbol_file
1777 return library.Properties.Llndk.Symbol_file
1779 if library.hasStubsVariants() && library.Properties.Stubs.Symbol_file != nil {
1780 return library.Properties.Stubs.Symbol_file
1785 func (library *libraryDecorator) hasStubsVariants() bool {
1788 return library.Properties.Stubs.Symbol_file != nil ||
1789 len(library.Properties.Stubs.Versions) > 0
1792 func (library *libraryDecorator) stubsVersions(ctx android.BaseMutatorContext) []string {
1793 if !library.hasStubsVariants() {
1798 vers := library.Properties.Stubs.Versions
1811 func (library *libraryDecorator) setStubsVersion(version string) {
1812 library.MutatedProperties.StubsVersion = version
1815 func (library *libraryDecorator) stubsVersion() string {
1816 return library.MutatedProperties.StubsVersion
1819 func (library *libraryDecorator) setBuildStubs(isLatest bool) {
1820 library.MutatedProperties.BuildStubs = true
1821 library.MutatedProperties.IsLatestVersion = isLatest
1824 func (library *libraryDecorator) setAllStubsVersions(versions []string) {
1825 library.MutatedProperties.AllStubsVersions = versions
1828 func (library *libraryDecorator) allStubsVersions() []string {
1829 return library.MutatedProperties.AllStubsVersions
1832 func (library *libraryDecorator) isLatestStubVersion() bool {
1833 return library.MutatedProperties.IsLatestVersion
1836 func (library *libraryDecorator) availableFor(what string) bool {
1838 if library.static() {
1839 list = library.StaticProperties.Static.Apex_available
1840 } else if library.shared() {
1841 list = library.SharedProperties.Shared.Apex_available
1849 func (library *libraryDecorator) makeUninstallable(mod *Module) {
1850 if library.static() && library.buildStatic() && !library.buildStubs() {
1898 library := &libraryDecorator{
1909 module.compiler = library
1910 module.linker = library
1911 module.installer = library
1912 module.library = library
1914 return module, library
1958 library := mctx.Module().(*Module).linker.(prebuiltLibraryInterface)
1961 buildStatic := library.buildStatic()
1962 buildShared := library.buildShared()
1990 } else if library, ok := mctx.Module().(LinkableInterface); ok && library.CcLibraryInterface() {
1994 if library.NonCcVariants() {
2002 buildStatic := library.BuildStaticVariant() && !isLLNDK
2003 buildShared := library.BuildSharedVariant()
2014 if _, ok := library.(*Module); ok {
2133 return m.library
2141 …if library := moduleLibraryInterface(mctx.Module()); library != nil && CanBeVersionVariant(mctx.Mo…
2142 if library.buildShared() {
2143 versions := library.stubsVersions(mctx)
2151 library.setAllStubsVersions(versions)
2154 if mctx.Module().(*Module).UseVndk() && library.hasLLNDKStubs() {
2158 stubsLib.setAllStubsVersions(library.allStubsVersions())
2169 …if library := moduleLibraryInterface(mctx.Module()); library != nil && CanBeVersionVariant(mctx.Mo…
2170 createVersionVariations(mctx, library.allStubsVersions())
2195 if library, ok := cc.linker.(*libraryDecorator); ok {
2196 if Bool(library.Properties.Inject_bssl_hash) {