Lines Matching refs:paths
337 func (paths Paths) containsPath(path Path) bool {
338 for _, p := range paths {
348 func PathsForSource(ctx PathContext, paths []string) Paths {
349 ret := make(Paths, len(paths))
350 for i, path := range paths {
359 func ExistentPathsForSources(ctx PathContext, paths []string) Paths {
360 ret := make(Paths, 0, len(paths))
361 for _, path := range paths {
385 func PathsForModuleSrc(ctx ModuleMissingDepsPathContext, paths []string) Paths {
386 return PathsForModuleSrcExcludes(ctx, paths, nil)
406 func PathsForModuleSrcExcludes(ctx ModuleMissingDepsPathContext, paths, excludes []string) Paths { argument
407 ret, missingDeps := PathsAndMissingDepsForModuleSrcExcludes(ctx, paths, excludes)
490 func PathsAndMissingDepsForModuleSrcExcludes(ctx ModuleWithDepsPathContext, paths, excludes []strin… argument
515 if paths == nil {
521 expandedSrcFiles := make(Paths, 0, len(paths))
522 for _, s := range paths {
547 excludePaths := func(paths Paths) Paths {
549 return paths
551 remainder := make(Paths, 0, len(paths))
552 for _, p := range paths {
567 paths := GlobFiles(ctx, pathForModuleSrc(ctx, sPath).String(), expandedExcludes)
568 return PathsWithModuleSrcSubDir(ctx, paths, ""), nil
589 func pathsForModuleSrcFromFullPath(ctx EarlyModulePathContext, paths []string, incDirs bool) Paths {
594 ret := make(Paths, 0, len(paths))
595 for _, p := range paths {
642 func CopyOfPaths(paths Paths) Paths {
643 return append(Paths(nil), paths...)
832 func PathsToDirectorySortedPaths(paths Paths) DirectorySortedPaths {
833 ret := append(DirectorySortedPaths(nil), paths...)
1070 func (p SourcePath) Join(ctx PathContext, paths ...string) SourcePath {
1071 path, err := validatePath(paths...)
1079 func (p SourcePath) join(ctx PathContext, paths ...string) SourcePath {
1080 path, err := validateSafePath(paths...)
1102 paths, err := ctx.GlobWithDeps(dir, nil)
1107 if len(paths) == 0 {
1110 relPath := Rel(ctx, p.srcDir, paths[0])
1192 func PathsForOutput(ctx PathContext, paths []string) WritablePaths {
1193 ret := make(WritablePaths, len(paths))
1194 for i, path := range paths {
1208 func (p OutputPath) Join(ctx PathContext, paths ...string) OutputPath {
1209 path, err := validatePath(paths...)
1227 func (p OutputPath) InSameDir(ctx PathContext, paths ...string) OutputPath {
1228 path, err := validatePath(paths...)
1240 func PathForIntermediates(ctx PathContext, paths ...string) OutputPath {
1241 path, err := validatePath(paths...)
1259 paths, err := expandOneSrcPath(ctx, p, nil)
1271 } else if len(paths) == 0 {
1274 } else if len(paths) > 1 {
1275 ReportPathErrorf(ctx, "%q produced %d files, expected exactly one", p, len(paths))
1277 return paths[0]
1280 func pathForModuleSrc(ctx EarlyModulePathContext, paths ...string) SourcePath {
1281 p, err := validatePath(paths...)
1299 func PathsWithModuleSrcSubDir(ctx EarlyModulePathContext, paths Paths, subDir string) Paths {
1300 paths = append(Paths(nil), paths...)
1302 for i, path := range paths {
1304 paths[i] = subDirFullPath.join(ctx, rel)
1306 return paths
1409 func PathForModuleOut(ctx ModuleOutPathContext, paths ...string) ModuleOutPath {
1410 p, err := validatePath(paths...)
1437 func PathForModuleGen(ctx ModuleOutPathContext, paths ...string) ModuleGenPath {
1438 p, err := validatePath(paths...)
1571 func (p InstallPath) Join(ctx PathContext, paths ...string) InstallPath {
1572 path, err := validatePath(paths...)
1657 func pathForNdkOrSdkInstall(ctx PathContext, prefix string, paths []string) InstallPath {
1664 return base.Join(ctx, paths...)
1667 func PathForNdkInstall(ctx PathContext, paths ...string) InstallPath {
1668 return pathForNdkOrSdkInstall(ctx, "ndk", paths)
1671 func PathForMainlineSdksInstall(ctx PathContext, paths ...string) InstallPath {
1672 return pathForNdkOrSdkInstall(ctx, "mainline-sdks", paths)
1842 func PathForTesting(paths ...string) Path {
1843 p, err := validateSafePath(paths...)
2020 func PathsIfNonNil(paths ...Path) Paths {
2021 if len(paths) == 0 {
2024 } else if len(paths) == 1 {
2026 if paths[0] != nil {
2027 return paths
2032 ret := make(Paths, 0, len(paths))
2033 for _, path := range paths {