Lines Matching refs:p

205 func (p *Module) getSrcsPathMappings() []pathMapping {
206 return p.srcsPathMappings
210 func (p *Module) getDataPathMappings() []pathMapping {
211 return p.dataPathMappings
215 func (p *Module) getSrcsZip() android.Path {
216 return p.srcsZip
223 func (p *Module) init(additionalProps ...interface{}) android.Module {
224 p.AddProperties(&p.properties, &p.protoProperties)
229 if p.bootstrapper != nil {
230 p.AddProperties(p.bootstrapper.bootstrapperProps()...)
233 android.InitAndroidArchModule(p, p.hod, p.multilib)
234 android.InitDefaultableModule(p)
236 return p
312 func (p *Module) HostToolPath() android.OptionalPath {
313 if p.installer == nil {
319 return android.OptionalPathForPath(p.installer.(*binaryDecorator).path)
323 func (p *Module) OutputFiles(tag string) (android.Paths, error) {
326 if outputFile := p.installSource; outputFile.Valid() {
335 func (p *Module) isEmbeddedLauncherEnabled() bool {
336 return p.installer != nil && Bool(p.properties.Embedded_launcher)
340 for _, p := range paths {
341 if filepath.Ext(p) == ext {
349 func (p *Module) anySrcHasExt(ctx android.BottomUpMutatorContext, ext string) bool {
350 return anyHasExt(p.properties.Srcs, ext)
357 func (p *Module) DepsMutator(ctx android.BottomUpMutatorContext) {
358 android.ProtoDeps(ctx, &p.protoProperties)
361 {"python_version", p.properties.Actual_version},
365 if p.anySrcHasExt(ctx, protoExt) && p.Name() != "libprotobuf-python" {
370 …ctx.AddVariationDependencies(versionVariation, pythonLibTag, android.LastUniqueStrings(p.propertie…
376 if p.installer != nil && p.isEmbeddedLauncherEnabled() {
391 switch p.properties.Actual_version {
396 if p.bootstrapper.autorun() {
405 if p.bootstrapper.autorun() {
414 p.properties.Actual_version, ctx.ModuleName()))
424 ctx.AddVariationDependencies(javaDataVariation, javaDataTag, p.properties.Java_data...)
427 func (p *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) {
428 p.generatePythonBuildActions(ctx)
431 if p.bootstrapper != nil {
434 p.collectPathsFromTransitiveDeps(ctx)
438 p.installSource = p.bootstrapper.bootstrap(ctx, p.properties.Actual_version,
439 p.isEmbeddedLauncherEnabled(), p.srcsPathMappings, p.srcsZip, p.depsSrcsZips)
443 if p.installer != nil {
451 p.installer.setAndroidMkSharedLibs(sharedLibs)
454 if p.installSource.Valid() {
455 p.installer.install(ctx, p.installSource.Path())
461 func (p *Module) generatePythonBuildActions(ctx android.ModuleContext) {
462 …expandedSrcs := android.PathsForModuleSrcExcludes(ctx, p.properties.Srcs, p.properties.Exclude_src…
464 if p.bootstrapper != nil && !p.bootstrapper.autorun() {
472 expandedData := android.PathsForModuleSrc(ctx, p.properties.Data)
480 pkgPath := String(p.properties.Pkg_path)
483 pkgPath = filepath.Clean(String(p.properties.Pkg_path))
488 String(p.properties.Pkg_path))
493 if proptools.BoolDefault(p.properties.Is_internal, false) {
498 p.genModulePathMappings(ctx, pkgPath, expandedSrcs, expandedData)
501 p.srcsZip = p.createSrcsZip(ctx, pkgPath)
520 func (p *Module) genModulePathMappings(ctx android.ModuleContext, pkgPath string,
536 if !checkForDuplicateOutputPath(ctx, destToPySrcs, runfilesPath, s.String(), p.Name(), p.Name()) {
537 p.srcsPathMappings = append(p.srcsPathMappings, pathMapping{dest: runfilesPath, src: s})
547 if !checkForDuplicateOutputPath(ctx, destToPyData, runfilesPath, d.String(), p.Name(), p.Name()) {
548 p.dataPathMappings = append(p.dataPathMappings,
555 func (p *Module) createSrcsZip(ctx android.ModuleContext, pkgPath string) android.Path {
557 pathMappings := append(p.srcsPathMappings, p.dataPathMappings...)
578 protoFlags := android.GetProtoFlags(ctx, &p.protoProperties)
650 func (p *Module) collectPathsFromTransitiveDeps(ctx android.ModuleContext) {
655 for _, path := range p.srcsPathMappings {
658 for _, path := range p.dataPathMappings {
692 p.depsSrcsZips = append(p.depsSrcsZips, dep.getSrcsZip())
716 func (p *Module) InstallInData() bool {