Lines Matching refs:library
24 func (library *Library) AndroidMkEntriesHostDex() android.AndroidMkEntries {
25 hostDexNeeded := Bool(library.deviceProperties.Hostdex) && !library.Host()
26 if !library.IsForPlatform() {
33 if library.dexJarFile != nil {
34 output = library.dexJarFile
36 output = library.implementationAndResourcesJar
42 Required: library.deviceProperties.Target.Hostdex.Required,
48 if library.dexJarFile != nil {
49 entries.SetPath("LOCAL_SOONG_DEX_JAR", library.dexJarFile)
51 entries.SetPath("LOCAL_SOONG_HEADER_JAR", library.headerJarFile)
52 entries.SetPath("LOCAL_SOONG_CLASSES_JAR", library.implementationAndResourcesJar)
53 entries.SetString("LOCAL_MODULE_STEM", library.Stem()+"-hostdex")
61 func (library *Library) AndroidMkEntries() []android.AndroidMkEntries {
67 hideFromMake := !library.IsForPlatform()
69 if !library.ApexModuleBase.AvailableFor(android.AvailableToPlatform) {
77 checkedModulePaths := library.additionalCheckedModules
78 if library.IsForPlatform() && len(checkedModulePaths) != 0 {
94 DistFiles: library.distFiles,
95 OutputFile: android.OptionalPathForPath(library.outputFile),
99 if len(library.logtagsSrcs) > 0 {
101 for _, l := range library.logtagsSrcs {
107 if library.installFile == nil {
110 if library.dexJarFile != nil {
111 entries.SetPath("LOCAL_SOONG_DEX_JAR", library.dexJarFile)
113 if len(library.dexpreopter.builtInstalled) > 0 {
114 entries.SetString("LOCAL_SOONG_BUILT_INSTALLED", library.dexpreopter.builtInstalled)
116 entries.SetString("LOCAL_SDK_VERSION", library.sdkVersion().raw)
117 entries.SetPath("LOCAL_SOONG_CLASSES_JAR", library.implementationAndResourcesJar)
118 entries.SetPath("LOCAL_SOONG_HEADER_JAR", library.headerJarFile)
120 if library.jacocoReportClassesFile != nil {
121 entries.SetPath("LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR", library.jacocoReportClassesFile)
124 entries.AddStrings("LOCAL_EXPORT_SDK_LIBRARIES", library.exportedSdkLibs...)
126 if len(library.additionalCheckedModules) != 0 {
127 …entries.AddStrings("LOCAL_ADDITIONAL_CHECKED_MODULE", library.additionalCheckedModules.Strings()..…
130 if library.proguardDictionary != nil {
131 entries.SetPath("LOCAL_SOONG_PROGUARD_DICT", library.proguardDictionary)
133 entries.SetString("LOCAL_MODULE_STEM", library.Stem())
135 entries.SetOptionalPaths("LOCAL_SOONG_LINT_REPORTS", library.linter.reports)
141 hostDexEntries := library.AndroidMkEntriesHostDex()