Lines Matching refs:p
80 func (p *vndkPrebuiltLibraryDecorator) Name(name string) string {
81 return name + p.NameSuffix()
84 func (p *vndkPrebuiltLibraryDecorator) NameSuffix() string {
85 suffix := p.version()
86 if p.arch() != "" {
87 suffix += "." + p.arch()
89 if Bool(p.properties.Binder32bit) {
95 func (p *vndkPrebuiltLibraryDecorator) version() string {
96 return String(p.properties.Version)
99 func (p *vndkPrebuiltLibraryDecorator) arch() string {
100 return String(p.properties.Target_arch)
103 func (p *vndkPrebuiltLibraryDecorator) binderBit() string {
104 if Bool(p.properties.Binder32bit) {
110 func (p *vndkPrebuiltLibraryDecorator) snapshotAndroidMkSuffix() string {
114 func (p *vndkPrebuiltLibraryDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags {
115 p.libraryDecorator.libName = strings.TrimSuffix(ctx.ModuleName(), p.NameSuffix())
116 return p.libraryDecorator.linkerFlags(ctx, flags)
119 func (p *vndkPrebuiltLibraryDecorator) singleSourcePath(ctx ModuleContext) android.Path {
120 if len(p.properties.Srcs) == 0 {
125 if len(p.properties.Srcs) > 1 {
130 return android.PathForModuleSrc(ctx, p.properties.Srcs[0])
133 func (p *vndkPrebuiltLibraryDecorator) link(ctx ModuleContext,
136 if !p.matchesWithDevice(ctx.DeviceConfig()) {
141 if len(p.properties.Srcs) > 0 && p.shared() {
142 p.libraryDecorator.exportIncludes(ctx)
143 p.libraryDecorator.reexportFlags(p.properties.Export_flags...)
146 in := p.singleSourcePath(ctx)
148 p.unstrippedOutputFile = in
150 if p.stripper.NeedsStrip(ctx) {
153 p.stripper.StripExecutableOrSharedLib(ctx, in, stripped, stripFlags)
160 p.tocFile = android.OptionalPathForPath(tocFile)
163 p.androidMkSuffix = p.NameSuffix()
166 if vndkVersion == p.version() {
167 p.androidMkSuffix = ""
172 UnstrippedSharedLibrary: p.unstrippedOutputFile,
175 TableOfContents: p.tocFile,
178 p.libraryDecorator.flagExporter.setProvider(ctx)
187 func (p *vndkPrebuiltLibraryDecorator) matchesWithDevice(config android.DeviceConfig) bool {
189 if len(arches) == 0 || arches[0].ArchType.String() != p.arch() {
192 if config.BinderBitness() != p.binderBit() {
195 if len(p.properties.Srcs) == 0 {
201 func (p *vndkPrebuiltLibraryDecorator) nativeCoverage() bool {
205 func (p *vndkPrebuiltLibraryDecorator) isSnapshotPrebuilt() bool {
209 func (p *vndkPrebuiltLibraryDecorator) install(ctx ModuleContext, file android.Path) {