Lines Matching refs:p
74 func (p *vndkPrebuiltLibraryDecorator) Name(name string) string {
75 return name + p.NameSuffix()
78 func (p *vndkPrebuiltLibraryDecorator) NameSuffix() string {
79 suffix := p.version()
80 if p.arch() != "" {
81 suffix += "." + p.arch()
83 if Bool(p.properties.Binder32bit) {
89 func (p *vndkPrebuiltLibraryDecorator) version() string {
90 return String(p.properties.Version)
93 func (p *vndkPrebuiltLibraryDecorator) arch() string {
94 return String(p.properties.Target_arch)
97 func (p *vndkPrebuiltLibraryDecorator) binderBit() string {
98 if Bool(p.properties.Binder32bit) {
104 func (p *vndkPrebuiltLibraryDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags {
105 p.libraryDecorator.libName = strings.TrimSuffix(ctx.ModuleName(), p.NameSuffix())
106 return p.libraryDecorator.linkerFlags(ctx, flags)
109 func (p *vndkPrebuiltLibraryDecorator) singleSourcePath(ctx ModuleContext) android.Path {
110 if len(p.properties.Srcs) == 0 {
115 if len(p.properties.Srcs) > 1 {
120 return android.PathForModuleSrc(ctx, p.properties.Srcs[0])
123 func (p *vndkPrebuiltLibraryDecorator) link(ctx ModuleContext,
125 if len(p.properties.Srcs) > 0 && p.shared() {
127 return p.singleSourcePath(ctx)
132 func (p *vndkPrebuiltLibraryDecorator) install(ctx ModuleContext, file android.Path) {
134 if len(arches) == 0 || arches[0].ArchType.String() != p.arch() {
137 if ctx.DeviceConfig().BinderBitness() != p.binderBit() {
140 if p.shared() {
142 p.baseInstaller.subDir = "vndk-sp-" + p.version()
144 p.baseInstaller.subDir = "vndk-" + p.version()
146 p.baseInstaller.install(ctx, file)