Lines Matching refs:p

74 func (p *prebuiltLinker) prebuilt() *android.Prebuilt {
75 return &p.Prebuilt
78 func (p *prebuiltLinker) PrebuiltSrcs() []string {
79 return p.properties.Srcs
96 func (p *prebuiltLibraryLinker) linkerInit(ctx BaseModuleContext) {}
98 func (p *prebuiltLibraryLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
99 return p.libraryDecorator.linkerDeps(ctx, deps)
102 func (p *prebuiltLibraryLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
106 func (p *prebuiltLibraryLinker) linkerProps() []interface{} {
107 return p.libraryDecorator.linkerProps()
110 func (p *prebuiltLibraryLinker) link(ctx ModuleContext,
113 p.libraryDecorator.flagExporter.exportIncludes(ctx)
114 p.libraryDecorator.flagExporter.reexportDirs(deps.ReexportedDirs...)
115 p.libraryDecorator.flagExporter.reexportSystemDirs(deps.ReexportedSystemDirs...)
116 p.libraryDecorator.flagExporter.reexportFlags(deps.ReexportedFlags...)
117 p.libraryDecorator.flagExporter.reexportDeps(deps.ReexportedDeps...)
118 p.libraryDecorator.flagExporter.addExportedGeneratedHeaders(deps.ReexportedGeneratedHeaders...)
120 p.libraryDecorator.flagExporter.setProvider(ctx)
123 srcs := p.prebuiltSrcs(ctx)
130 p.libraryDecorator.exportVersioningMacroIfNeeded(ctx)
134 if String(p.prebuiltLinker.properties.Prefix_symbols) != "" {
136 transformBinaryPrefixSymbols(ctx, String(p.prebuiltLinker.properties.Prefix_symbols),
141 if p.static() {
151 if p.shared() {
152 p.unstrippedOutputFile = in
153 libName := p.libraryDecorator.getLibName(ctx) + flags.Toolchain.ShlibSuffix()
157 if p.stripper.NeedsStrip(ctx) {
160 p.stripper.StripExecutableOrSharedLib(ctx, in, stripped, stripFlags)
167 p.tocFile = android.OptionalPathForPath(tocFile)
170 if ctx.Windows() && p.properties.Windows_import_lib != nil {
174 importLibSrc := android.PathForModuleSrc(ctx, String(p.properties.Windows_import_lib))
175 importLibName := p.libraryDecorator.getLibName(ctx) + ".lib"
205 TableOfContents: p.tocFile,
215 if p.hasStubsVariants() && !p.buildStubs() && !ctx.Host() && isModuleSdkPrebuilts {
223 if p.header() {
238 func (p *prebuiltLibraryLinker) prebuiltSrcs(ctx android.BaseModuleContext) []string {
240 srcs := p.properties.Srcs
241 srcs = append(srcs, srcsForSanitizer(sanitize, p.properties.Sanitized)...)
242 if p.static() {
243 srcs = append(srcs, p.libraryDecorator.StaticProperties.Static.Srcs...)
244 …srcs = append(srcs, srcsForSanitizer(sanitize, p.libraryDecorator.StaticProperties.Static.Sanitize…
246 if p.shared() {
247 srcs = append(srcs, p.libraryDecorator.SharedProperties.Shared.Srcs...)
248 …srcs = append(srcs, srcsForSanitizer(sanitize, p.libraryDecorator.SharedProperties.Shared.Sanitize…
253 func (p *prebuiltLibraryLinker) shared() bool {
254 return p.libraryDecorator.shared()
257 func (p *prebuiltLibraryLinker) nativeCoverage() bool {
261 func (p *prebuiltLibraryLinker) disablePrebuilt() {
262 p.properties.Srcs = nil
263 p.properties.Sanitized.None.Srcs = nil
264 p.properties.Sanitized.Address.Srcs = nil
265 p.properties.Sanitized.Hwaddress.Srcs = nil
269 func (p *prebuiltLibraryLinker) implementationModuleName(name string) string {
365 func (p *prebuiltObjectLinker) prebuilt() *android.Prebuilt {
366 return &p.Prebuilt
369 func (p *prebuiltObjectLinker) sourceModuleName() string {
370 return proptools.String(p.properties.Source_module_name)
375 func (p *prebuiltObjectLinker) link(ctx ModuleContext,
377 if len(p.properties.Srcs) > 0 {
379 in := p.Prebuilt.SingleSourcePath(ctx)
392 func (p *prebuiltObjectLinker) object() bool {
423 func (p *prebuiltBinaryLinker) hostToolPath() android.OptionalPath {
424 return p.toolPath
427 func (p *prebuiltBinaryLinker) link(ctx ModuleContext,
430 if len(p.properties.Srcs) > 0 {
431 fileName := p.getStem(ctx) + flags.Toolchain.ExecutableSuffix()
432 in := p.Prebuilt.SingleSourcePath(ctx)
434 p.unstrippedOutputFile = in
468 p.toolPath = android.OptionalPathForPath(outputFile)
470 if p.stripper.NeedsStrip(ctx) {
472 p.stripper.StripExecutableOrSharedLib(ctx, in, stripped, flagsToStripFlags(flags))
491 func (p *prebuiltBinaryLinker) binary() bool {
543 func (p *prebuiltLinker) sourceModuleName() string {
544 return proptools.String(p.properties.Source_module_name)