Lines Matching +full:- +full:p

7 //     http://www.apache.org/licenses/LICENSE-2.0
26 // be a new filesystem image that is a subset of system.img (e.g. for an Android-like mini OS
44 func (p *PackagingSpec) FileName() string {
45 if p.relPathInPackage != "" {
46 return filepath.Base(p.relPathInPackage)
53 func (p *PackagingSpec) RelPathInPackage() string {
54 return p.relPathInPackage
109 func InitPackageModule(p PackageModule) {
110 base := p.packagingBase()
111 p.AddProperties(&base.properties)
114 func (p *PackagingBase) packagingBase() *PackagingBase {
115 return p
122 func (p *PackagingBase) getDepsForArch(ctx BaseModuleContext, arch ArchType) []string {
125 ret = append(ret, p.properties.Deps...)
127 ret = append(ret, p.properties.Multilib.Lib32.Deps...)
129 ret = append(ret, p.properties.Multilib.Lib64.Deps...)
131 ret = append(ret, p.properties.Multilib.Common.Deps...)
136 ret = append(ret, p.properties.Deps...)
138 ret = append(ret, p.properties.Multilib.First.Deps...)
146 ret = append(ret, p.properties.Arch.Arm64.Deps...)
148 ret = append(ret, p.properties.Arch.Arm.Deps...)
150 ret = append(ret, p.properties.Arch.X86_64.Deps...)
152 ret = append(ret, p.properties.Arch.X86.Deps...)
159 func (p *PackagingBase) getSupportedTargets(ctx BaseModuleContext) []Target {
179 // PackagingBase-derived modules can define their own dependency tag by embedding this, which
190 func (p *PackagingBase) AddDeps(ctx BottomUpMutatorContext, depTag blueprint.DependencyTag) {
191 for _, t := range p.getSupportedTargets(ctx) {
192 for _, dep := range p.getDepsForArch(ctx, t.Arch.ArchType) {
193 if p.IgnoreMissingDependencies && !ctx.OtherModuleExists(dep) {
202 func (p *PackagingBase) GatherPackagingSpecs(ctx ModuleContext) map[string]PackagingSpec {
218 func (p *PackagingBase) CopyDepsToZip(ctx ModuleContext, zipOut WritablePath) (entries []string) {
219 m := p.GatherPackagingSpecs(ctx)
223 builder.Command().Text("rm").Flag("-rf").Text(dir.String())
224 builder.Command().Text("mkdir").Flag("-p").Text(dir.String())
234 builder.Command().Text("mkdir").Flag("-p").Text(destDir)
239 builder.Command().Text("ln").Flag("-sf").Text(ps.symlinkTarget).Text(destPath)
248 FlagWithOutput("-o ", zipOut).
249 FlagWithArg("-C ", dir.String()).
250 Flag("-L 0"). // no compression because this will be unzipped soon
251 FlagWithArg("-D ", dir.String())
252 builder.Command().Text("rm").Flag("-rf").Text(dir.String())
258 // packagingSpecsDepSet is a thin type-safe wrapper around the generic depSet. It always uses