Lines Matching +full:- +full:p

7 //     http://www.apache.org/licenses/LICENSE-2.0
63 func (p *prebuiltLinker) prebuilt() *android.Prebuilt {
64 return &p.Prebuilt
67 func (p *prebuiltLinker) PrebuiltSrcs() []string {
68 return p.properties.Srcs
85 func (p *prebuiltLibraryLinker) linkerInit(ctx BaseModuleContext) {}
87 func (p *prebuiltLibraryLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
88 return p.libraryDecorator.linkerDeps(ctx, deps)
91 func (p *prebuiltLibraryLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
95 func (p *prebuiltLibraryLinker) linkerProps() []interface{} {
96 return p.libraryDecorator.linkerProps()
99 func (p *prebuiltLibraryLinker) link(ctx ModuleContext,
102 p.libraryDecorator.flagExporter.exportIncludes(ctx)
103 p.libraryDecorator.flagExporter.reexportDirs(deps.ReexportedDirs...)
104 p.libraryDecorator.flagExporter.reexportSystemDirs(deps.ReexportedSystemDirs...)
105 p.libraryDecorator.flagExporter.reexportFlags(deps.ReexportedFlags...)
106 p.libraryDecorator.flagExporter.reexportDeps(deps.ReexportedDeps...)
107 p.libraryDecorator.flagExporter.addExportedGeneratedHeaders(deps.ReexportedGeneratedHeaders...)
109 p.libraryDecorator.flagExporter.setProvider(ctx)
112 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 {
157 // a.exe <-- static link --> foo.lib <-- dynamic link --> foo.dll
158 importLibSrc := android.PathForModuleSrc(ctx, String(p.properties.Windows_import_lib))
159 importLibName := p.libraryDecorator.getLibName(ctx) + ".lib"
169 "cpFlags": "-L",
181 "cpFlags": "-L",
187 UnstrippedSharedLibrary: p.unstrippedOutputFile,
190 TableOfContents: p.tocFile,
197 if p.header() {
206 func (p *prebuiltLibraryLinker) prebuiltSrcs(ctx android.BaseModuleContext) []string {
208 srcs := p.properties.Srcs
209 srcs = append(srcs, srcsForSanitizer(sanitize, p.properties.Sanitized)...)
210 if p.static() {
211 srcs = append(srcs, p.libraryDecorator.StaticProperties.Static.Srcs...)
212 …srcs = append(srcs, srcsForSanitizer(sanitize, p.libraryDecorator.StaticProperties.Static.Sanitize…
214 if p.shared() {
215 srcs = append(srcs, p.libraryDecorator.SharedProperties.Shared.Srcs...)
216 …srcs = append(srcs, srcsForSanitizer(sanitize, p.libraryDecorator.SharedProperties.Shared.Sanitize…
221 func (p *prebuiltLibraryLinker) shared() bool {
222 return p.libraryDecorator.shared()
225 func (p *prebuiltLibraryLinker) nativeCoverage() bool {
229 func (p *prebuiltLibraryLinker) disablePrebuilt() {
230 p.properties.Srcs = nil
234 func (p *prebuiltLibraryLinker) implementationModuleName(name string) string {
280 // to be used as a data dependency of a test-related module (such as cc_test, or
346 // TODO(b/184543518): cc_prebuilt_library_static may have properties for re-exporting flags
348 // TODO(eakammer):Add stub-related flags if this library is a stub library.
374 func (p *prebuiltObjectLinker) prebuilt() *android.Prebuilt {
375 return &p.Prebuilt
380 func (p *prebuiltObjectLinker) link(ctx ModuleContext,
382 if len(p.properties.Srcs) > 0 {
383 return p.Prebuilt.SingleSourcePath(ctx)
388 func (p *prebuiltObjectLinker) object() bool {
420 func (p *prebuiltBinaryLinker) hostToolPath() android.OptionalPath {
421 return p.toolPath
424 func (p *prebuiltBinaryLinker) link(ctx ModuleContext,
427 if len(p.properties.Srcs) > 0 {
428 fileName := p.getStem(ctx) + flags.Toolchain.ExecutableSuffix()
429 in := p.Prebuilt.SingleSourcePath(ctx)
431 p.unstrippedOutputFile = in
465 p.toolPath = android.OptionalPathForPath(outputFile)
467 if p.stripper.NeedsStrip(ctx) {
469 p.stripper.StripExecutableOrSharedLib(ctx, in, stripped, flagsToStripFlags(flags))
488 func (p *prebuiltBinaryLinker) binary() bool {