Lines Matching refs:p
49 func (p *Prebuilt) Name(name string) string {
53 func (p *Prebuilt) SingleSourcePath(ctx ModuleContext) Path {
54 if p.srcs != nil {
55 if len(*p.srcs) == 0 {
60 if len(*p.srcs) > 1 {
67 return PathForModuleSrc(ctx, (*p.srcs)[0])
69 if proptools.String(p.src) == "" {
73 return PathForModuleSrc(ctx, *p.src)
77 func (p *Prebuilt) UsePrebuilt() bool {
78 return p.properties.UsePrebuilt
82 p := module.Prebuilt()
83 module.AddProperties(&p.properties)
84 p.srcs = srcs
88 p := module.Prebuilt()
89 module.AddProperties(&p.properties)
90 p.src = src
111 p := m.Prebuilt()
115 p.properties.SourceExists = true
126 p := m.Prebuilt()
127 if p.srcs == nil && p.src == nil {
130 if !p.properties.SourceExists {
131 p.properties.UsePrebuilt = p.usePrebuilt(ctx, nil)
135 p := m.(PrebuiltInterface).Prebuilt()
136 if p.usePrebuilt(ctx, s) {
137 p.properties.UsePrebuilt = true
151 p := m.Prebuilt()
153 if p.properties.UsePrebuilt {
154 if p.properties.SourceExists {
165 func (p *Prebuilt) usePrebuilt(ctx TopDownMutatorContext, source Module) bool {
166 if p.srcs != nil && len(*p.srcs) == 0 {
170 if p.src != nil && *p.src == "" {
175 if Bool(p.properties.Prefer) {
182 func (p *Prebuilt) SourceExists() bool {
183 return p.properties.SourceExists