/build/blueprint/pathtools/ |
D | glob_test.go | 118 pattern: filepath.Join(pwd, "testdata/glob/c/*/*.ext"), 120 filepath.Join(pwd, "testdata/glob/c/f/f.ext"), 121 filepath.Join(pwd, "testdata/glob/c/g/g.ext"), 124 filepath.Join(pwd, "testdata/glob/c"), 125 filepath.Join(pwd, "testdata/glob/c/f"), 126 filepath.Join(pwd, "testdata/glob/c/g"), 127 filepath.Join(pwd, "testdata/glob/c/h"), 174 pattern: filepath.Join(pwd, "testdata/glob/**/*.ext"), 176 filepath.Join(pwd, "testdata/glob/d.ext"), 177 filepath.Join(pwd, "testdata/glob/e.ext"), [all …]
|
D | glob.go | 99 if filepath.Base(pattern) == "**" { 159 pattern = filepath.Clean(pattern) 170 pattern = filepath.Dir(pattern) 217 newMatches, err := fs.glob(filepath.Join(MatchEscape(m), file)) 239 dir, file = filepath.Split(path) 285 _, name := filepath.Split(match) 298 if filepath.Base(pattern) == "**" { 316 pattern, patternFile = filepath.Dir(pattern), filepath.Base(pattern) 327 if match, err := filepath.Match(pattern, name); err != nil { 332 name = filepath.Dir(name) [all …]
|
D | fs.go | 55 fs.files[filepath.Clean(f)] = b 56 dir := filepath.Dir(f) 59 dir = filepath.Dir(dir) 135 if filepath.IsAbs(path) { 138 return filepath.Join(fs.srcDir, path) 145 rel, err := filepath.Rel(fs.srcDir, path) 202 paths, err := filepath.Glob(fs.toAbs(pattern)) 252 name = filepath.Join(dir, file) 263 if filepath.IsAbs(to) { 266 name = filepath.Join(dir, to) [all …]
|
/build/soong/cmd/diff_target_files/ |
D | glob.go | 26 if filepath.Base(pattern) == "**" { 44 pattern, patternFile = filepath.Dir(pattern), filepath.Base(pattern) 55 if match, err := filepath.Match(pattern, name); err != nil { 60 name = filepath.Dir(name) 66 name, nameFile = filepath.Dir(name), filepath.Base(name) 76 match, err := filepath.Match(patternFile, nameFile)
|
/build/soong/ui/build/ |
D | upload_test.go | 36 filepath.Join(rootDir, "d1"), 37 filepath.Join(rootDir, "d1", "d2"), 38 filepath.Join(rootDir, "d1", "d2", "d3"), 42 filepath.Join(rootDir, "d1", "f1"), 43 filepath.Join(rootDir, "d1", "d2", "f1"), 44 filepath.Join(rootDir, "d1", "d2", "d3", "f1"), 60 filepath.Join(rootDir, "d1", "f1"), 61 filepath.Join(rootDir, "d1", "d2", "f1"), 62 filepath.Join(rootDir, "d1", "d2", "d3", "f1"), 113 retDir := filepath.Join(outDir, "tmp_upload_dir") [all …]
|
D | path.go | 79 myPath := filepath.Join(tmpDir, "path") 94 origExec, err = filepath.Abs(origExec) 100 err = os.Symlink(origExec, filepath.Join(myPath, name)) 106 myPath, _ = filepath.Abs(myPath) 109 prebuiltsPath, _ := filepath.Abs("prebuilts/build-tools/path/" + runtime.GOOS + "-x86") 137 myPath := filepath.Join(config.OutDir(), ".path") 143 cfg.TrimPath, _ = filepath.Abs(".") 204 for _, pathEntry := range filepath.SplitList(origPath) { 232 err := os.Symlink("../.path_interposer", filepath.Join(myPath, name)) 240 myPath, _ = filepath.Abs(myPath) [all …]
|
D | config.go | 140 ret.environ.Set("OUT_DIR", filepath.Clean(outDir)) 147 outDir = filepath.Join(baseDir, filepath.Base(wd)) 154 ret.distDir = filepath.Clean(distDir) 156 ret.distDir = filepath.Join(ret.OutDir(), "dist") 224 symbolizerPath := filepath.Join("prebuilts/clang/host", ret.HostPrebuiltTag(), 256 java8Home := filepath.Join("prebuilts/jdk/jdk8", ret.HostPrebuiltTag()) 257 java9Home := filepath.Join("prebuilts/jdk/jdk9", ret.HostPrebuiltTag()) 258 java11Home := filepath.Join("prebuilts/jdk/jdk11", ret.HostPrebuiltTag()) 272 newPath := []string{filepath.Join(absJavaHome, "bin")} 283 ret.environ.Set("PATH", strings.Join(newPath, string(filepath.ListSeparator))) [all …]
|
D | cleanbuild.go | 34 files, err := filepath.Glob(glob) 52 removeGlobs(ctx, filepath.Join(config.OutDir(), "*")) 58 removeGlobs(ctx, filepath.Join(config.ProductOut(), "data", "*")) 74 return filepath.Join(hostCrossOutPath, path) 85 return filepath.Join(hostOutPath, path) 89 return filepath.Join(config.hostOutRoot(), "common", path) 94 return filepath.Join(productOutPath, path) 162 ensureDirectoriesExist(ctx, filepath.Dir(configFile)) 209 newFile = filepath.Join(basePath, newFile) 263 oldPath := filepath.Join(basePath, oldPaths[0]) [all …]
|
D | finder.go | 55 prunePath := filepath.Join(dir, name) 94 filepath.Join(dumpDir, "files.db")) 122 err := dumpListToFile(ctx, config, androidMks, filepath.Join(dumpDir, "Android.mk.list")) 129 err = dumpListToFile(ctx, config, cleanSpecs, filepath.Join(dumpDir, "CleanSpec.mk.list")) 138 …err = dumpListToFile(ctx, config, androidProductsMks, filepath.Join(dumpDir, "AndroidProducts.mk.l… 145 err = dumpListToFile(ctx, config, bazelFiles, filepath.Join(dumpDir, "bazel.list")) 152 err = dumpListToFile(ctx, config, owners, filepath.Join(dumpDir, "OWNERS.list")) 159 err = dumpListToFile(ctx, config, testMappings, filepath.Join(dumpDir, "TEST_MAPPING.list")) 171 err = dumpListToFile(ctx, config, androidBps, filepath.Join(dumpDir, "Android.bp.list"))
|
D | build.go | 29 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), "Android.mk")) 30 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), "CleanSpec.mk")) 39 ensureEmptyFileExists(ctx, filepath.Join(config.SoongOutDir(), ".soong.kati_enabled")) 43 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), "ninja_build")) 44 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), ".out-dir")) 123 lowerCase := filepath.Join(outDir, "casecheck.txt") 124 upperCase := filepath.Join(outDir, "CaseCheck.txt") 324 subDir := filepath.Join(subDirs...) 325 destDir := filepath.Join(config.RealDistDir(), "soong_ui", subDir) 332 ctx.Printf("failed to dist %s: %s", filepath.Base(src), err.Error()) [all …]
|
D | util_test.go | 44 ensureEmptyDirectoriesExist(ctx, filepath.Join(tmpDir, "a/b")) 46 err = os.Chmod(filepath.Join(tmpDir, "a"), 0555) 51 ensureEmptyDirectoriesExist(ctx, filepath.Join(tmpDir, "a")) 62 src := filepath.Join(tmpDir, "src.txt") 67 dst := filepath.Join(tmpDir, "dst.txt") 95 srcExists := filepath.Join(tmpDir, "src_exist.txt")
|
D | bazel.go | 47 infoCmd.Dir = filepath.Join(config.OutDir(), "..") 90 bazelExecutable := filepath.Join("tools", "bazel") 108 "--profile="+filepath.Join(shared.BazelMetricsFilename(config, actionName)), 168 cmd.Dir = filepath.Join(config.OutDir(), "..") 198 bazelNinjaBuildOutputRoot := filepath.Join(outputBasePath, "..", "out") 208 destDir := filepath.Join(rootPath, relativePath) 217 destPath := filepath.Join(destDir, f.Name()) 220 srcPath := filepath.Join(config.OutDir(), relativePath, f.Name()) 232 populateOutdir(ctx, config, rootPath, filepath.Join(relativePath, f.Name()))
|
/build/soong/python/ |
D | python_test.go | 61 filepath.Join("dir", bpFile): []byte( 75 filepath.Join("dir", bpFile): []byte( 93 filepath.Join("dir", bpFile): []byte( 115 filepath.Join("dir", bpFile): []byte( 152 filepath.Join("dir", bpFile): []byte( 179 filepath.Join("dir", bpFile): []byte( 224 filepath.Join("dir", bpFile): []byte( 296 filepath.Join("dir", "default.py"): nil, 297 filepath.Join("dir", "default_py2.py"): nil, 298 filepath.Join("dir", "default_py3.py"): nil, [all …]
|
/build/soong/cuj/ |
D | cuj.go | 91 log.SetOutput(filepath.Join(logsDir, "soong.log")) 92 trace.SetOutput(filepath.Join(logsDir, "build.trace")) 93 stat.AddOutput(status.NewVerboseLog(log, filepath.Join(logsDir, "verbose.log"))) 94 stat.AddOutput(status.NewErrorLog(log, filepath.Join(logsDir, "error.log"))) 95 stat.AddOutput(status.NewProtoErrorLog(log, filepath.Join(logsDir, "build_error"))) 98 defer met.Dump(filepath.Join(logsDir, "soong_metrics")) 110 …trace.ImportMicrofactoryLog(filepath.Join(filepath.Dir(executable), "."+filepath.Base(executable)+… 138 cujDir := filepath.Join(outDir, "cuj_tests") 141 os.Setenv("OUT_DIR", filepath.Join(cujDir, "out")) 216 defer cujMetrics.Dump(filepath.Join(cujDir, "logs", "cuj_metrics.pb")) [all …]
|
/build/blueprint/microfactory/ |
D | microfactory_test.go | 102 out := filepath.Join(dir, "out", "test") 106 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil { 132 out := filepath.Join(dir, "out", "test") 136 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil { 162 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil { 223 os.Chtimes(filepath.Join(dir, "test.fact"), newTime, newTime) 224 os.Chtimes(filepath.Join(dir, "main/main.go"), newTime, newTime) 225 os.Chtimes(filepath.Join(dir, "a/a.go"), newTime, newTime) 226 os.Chtimes(filepath.Join(dir, "a/b.go"), newTime, newTime) 227 os.Chtimes(filepath.Join(dir, "b/a.go"), newTime, newTime) [all …]
|
/build/soong/shared/ |
D | paths.go | 39 if filepath.IsAbs(next) { 42 result = filepath.Join(result, next) 50 return filepath.Join(outDir, ".temp") 58 return filepath.Join(s.BazelMetricsDir(), actionName.String()+"_bazel_profile.gz")
|
/build/soong/cc/ |
D | cflag_artifacts.go | 58 filepath := android.PathForOutput(ctx, "cflags", filename) 59 s.interOutputs[flag] = append(s.interOutputs[flag], filepath) 60 return filename, filepath 70 filename, filepath := s.incrementFile(ctx, cleanedName, part) 72 rule.Command().Textf("rm -f %s", filepath.String()) 77 FlagWithOutput(">> ", filepath) 81 FlagWithOutput(">> ", filepath) 99 FlagWithOutput(">> ", filepath). 104 filename, filepath = s.incrementFile(ctx, cleanedName, part+index+1) 106 rule.Command().Textf("rm -f %s", filepath.String())
|
D | vendor_snapshot.go | 301 snapshotDir = filepath.Join("fake", snapshotDir) 303 snapshotArchDir := filepath.Join(snapshotDir, ctx.DeviceConfig().DeviceArch()) 305 includeDir := filepath.Join(snapshotArchDir, "include") 306 configsDir := filepath.Join(snapshotArchDir, "configs") 307 noticeDir := filepath.Join(snapshotArchDir, "NOTICE_FILES") 351 prop.InitRc = append(prop.InitRc, filepath.Join("configs", path.Base())) 354 prop.VintfFragments = append(prop.VintfFragments, filepath.Join("configs", path.Base())) 359 out := filepath.Join(configsDir, path.Base()) 374 prop.ExportedDirs = append(prop.ExportedDirs, filepath.Join("include", dir.String())) 377 … prop.ExportedSystemDirs = append(prop.ExportedSystemDirs, filepath.Join("include", dir.String())) [all …]
|
/build/blueprint/bootstrap/ |
D | bootstrap.go | 35 …goTestMainCmd = pctx.StaticVariable("goTestMainCmd", filepath.Join(bootstrapDir, "bin", "gotestm… 36 …goTestRunnerCmd = pctx.StaticVariable("goTestRunnerCmd", filepath.Join(bootstrapDir, "bin", "gotes… 37 …pluginGenSrcCmd = pctx.StaticVariable("pluginGenSrcCmd", filepath.Join(bootstrapDir, "bin", "loadp… 165 docsDir = filepath.Join(mainDir, "docs") 167 mainDir = filepath.Join("$buildDir", mainSubDir) 168 bootstrapDir = filepath.Join("$buildDir", bootstrapSubDir) 169 miniBootstrapDir = filepath.Join("$buildDir", miniBootstrapSubDir) 171 minibpFile = filepath.Join(miniBootstrapDir, "minibp") 182 return filepath.Join(config.(BootstrapConfig).BuildDir(), bootstrapSubDir, "bin") 187 return filepath.Join(c.BlueprintToolLocation()) [all …]
|
D | cleanup.go | 58 targets[filepath.Clean(replacedTarget)] = true 62 targets[filepath.Clean(replacedTarget)] = true 84 logFilePath := filepath.Join(ninjaBuildDir, logFileName) 152 path, err = filepath.Abs(path) 162 for dir := filepath.Dir(path); dir != cwd; dir = filepath.Dir(dir) {
|
/build/make/tools/rbcrun/ |
D | host_test.go | 47 if filepath.Base(starlarktestSrcFile) != "starlarktest.go" { 51 return filepath.Join(filepath.Dir(starlarktestSrcFile), filename) 74 return filepath.Join(filepath.Dir(thisSrcFile), "testdata") 92 filename := filepath.Join(filepath.Dir(thisSrcFile), starFile) 141 LoadPathRoot = filepath.Dir(dir)
|
D | host.go | 49 return filepath.Abs(filepath.Join(LoadPathRoot, path[2:])) 51 return filepath.Abs(filepath.Join(callerDir, path[1:])) 53 return filepath.Abs(path) 101 childThread.SetLocal(callerDirKey, filepath.Dir(modulePath)) 158 if files, err = filepath.Glob(pattern); err != nil { 162 prefix := top + string(filepath.Separator) 163 if files, err = filepath.Glob(prefix + pattern); err != nil { 261 absPath, err := filepath.Abs(filename) 263 mainThread.SetLocal(callerDirKey, filepath.Dir(absPath))
|
/build/soong/ui/build/paths/ |
D | logs.go | 47 d, err := os.Open(filepath.Dir(name)) 52 return fmt.Sprintf("/proc/self/fd/%d/%s", d.Fd(), filepath.Base(name)), func() { 67 dir := filepath.Dir(name) 69 absDir, err := filepath.Abs(dir) 74 err = os.Symlink(absDir, filepath.Join(d, "d")) 79 addr = filepath.Join(d, "d", filepath.Base(name))
|
/build/soong/cmd/zipsync/ |
D | zipsync.go | 92 *zipPrefix = filepath.Clean(*zipPrefix) + "/" 111 if match, err := filepath.Match(*filter, filepath.Base(name)); err != nil { 117 if filepath.IsAbs(name) { 126 filename := filepath.Join(*outputDir, name) 130 must(os.MkdirAll(filepath.Dir(filename), 0777))
|
/build/soong/cmd/sbox/ |
D | sbox.go | 88 filepath.Walk(root, func(path string, info os.FileInfo, err error) error { 90 relPath, err := filepath.Rel(root, path) 136 tempDir := filepath.Join(sandboxesRoot, "sbox", hex.EncodeToString(hash.Sum(nil))) 165 localTempDir = filepath.Join(localTempDir, strconv.Itoa(i)) 243 depFile = filepath.Join(pathToTempDirInSbox, "deps.d") 346 dir := joinPath(sandboxDir, filepath.Dir(copyPair.GetFrom())) 390 err := os.MkdirAll(filepath.Dir(to), 0777) 494 err = os.MkdirAll(filepath.Dir(outRspFile), 0777) 534 err := os.MkdirAll(filepath.Dir(toPath), 0777) 580 outDir := filepath.Dir(out) [all …]
|