Lines Matching refs:p
65 func (p *prebuiltLinker) prebuilt() *android.Prebuilt {
66 return &p.Prebuilt
69 func (p *prebuiltLinker) PrebuiltSrcs() []string {
70 return p.properties.Srcs
87 func (p *prebuiltLibraryLinker) linkerInit(ctx BaseModuleContext) {}
89 func (p *prebuiltLibraryLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
90 return p.libraryDecorator.linkerDeps(ctx, deps)
93 func (p *prebuiltLibraryLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
97 func (p *prebuiltLibraryLinker) linkerProps() []interface{} {
98 return p.libraryDecorator.linkerProps()
101 func (p *prebuiltLibraryLinker) link(ctx ModuleContext,
104 p.libraryDecorator.flagExporter.exportIncludes(ctx)
105 p.libraryDecorator.flagExporter.reexportDirs(deps.ReexportedDirs...)
106 p.libraryDecorator.flagExporter.reexportSystemDirs(deps.ReexportedSystemDirs...)
107 p.libraryDecorator.flagExporter.reexportFlags(deps.ReexportedFlags...)
108 p.libraryDecorator.flagExporter.reexportDeps(deps.ReexportedDeps...)
109 p.libraryDecorator.flagExporter.addExportedGeneratedHeaders(deps.ReexportedGeneratedHeaders...)
111 p.libraryDecorator.flagExporter.setProvider(ctx)
114 srcs := p.prebuiltSrcs(ctx)
121 p.libraryDecorator.exportVersioningMacroIfNeeded(ctx)
125 if p.static() {
135 if p.shared() {
136 p.unstrippedOutputFile = in
137 libName := p.libraryDecorator.getLibName(ctx) + flags.Toolchain.ShlibSuffix()
141 if p.stripper.NeedsStrip(ctx) {
144 p.stripper.StripExecutableOrSharedLib(ctx, in, stripped, stripFlags)
151 p.tocFile = android.OptionalPathForPath(tocFile)
154 if ctx.Windows() && p.properties.Windows_import_lib != nil {
158 importLibSrc := android.PathForModuleSrc(ctx, String(p.properties.Windows_import_lib))
159 importLibName := p.libraryDecorator.getLibName(ctx) + ".lib"
189 TableOfContents: p.tocFile,
197 if p.hasStubsVariants() && !p.buildStubs() && !ctx.Host() &&
206 if p.header() {
221 func (p *prebuiltLibraryLinker) prebuiltSrcs(ctx android.BaseModuleContext) []string {
223 srcs := p.properties.Srcs
224 srcs = append(srcs, srcsForSanitizer(sanitize, p.properties.Sanitized)...)
225 if p.static() {
226 srcs = append(srcs, p.libraryDecorator.StaticProperties.Static.Srcs...)
227 …srcs = append(srcs, srcsForSanitizer(sanitize, p.libraryDecorator.StaticProperties.Static.Sanitize…
229 if p.shared() {
230 srcs = append(srcs, p.libraryDecorator.SharedProperties.Shared.Srcs...)
231 …srcs = append(srcs, srcsForSanitizer(sanitize, p.libraryDecorator.SharedProperties.Shared.Sanitize…
236 func (p *prebuiltLibraryLinker) shared() bool {
237 return p.libraryDecorator.shared()
240 func (p *prebuiltLibraryLinker) nativeCoverage() bool {
244 func (p *prebuiltLibraryLinker) disablePrebuilt() {
245 p.properties.Srcs = nil
249 func (p *prebuiltLibraryLinker) implementationModuleName(name string) string {
521 func (p *prebuiltObjectLinker) prebuilt() *android.Prebuilt {
522 return &p.Prebuilt
527 func (p *prebuiltObjectLinker) link(ctx ModuleContext,
529 if len(p.properties.Srcs) > 0 {
531 in := p.Prebuilt.SingleSourcePath(ctx)
544 func (p *prebuiltObjectLinker) object() bool {
576 func (p *prebuiltBinaryLinker) hostToolPath() android.OptionalPath {
577 return p.toolPath
580 func (p *prebuiltBinaryLinker) link(ctx ModuleContext,
583 if len(p.properties.Srcs) > 0 {
584 fileName := p.getStem(ctx) + flags.Toolchain.ExecutableSuffix()
585 in := p.Prebuilt.SingleSourcePath(ctx)
587 p.unstrippedOutputFile = in
621 p.toolPath = android.OptionalPathForPath(outputFile)
623 if p.stripper.NeedsStrip(ctx) {
625 p.stripper.StripExecutableOrSharedLib(ctx, in, stripped, flagsToStripFlags(flags))
644 func (p *prebuiltBinaryLinker) binary() bool {