Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 25 of 247) sorted by relevance

12345678910

/build/soong/cmd/diff_target_files/
Dglob.go26 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/blueprint/pathtools/
Dglob_test.go118 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 …]
Dglob.go93 if filepath.Base(pattern) == "**" {
157 pattern = filepath.Clean(pattern)
168 pattern = filepath.Dir(pattern)
215 newMatches, err := fs.glob(filepath.Join(MatchEscape(m), file))
237 dir, file = filepath.Split(path)
283 _, name := filepath.Split(match)
296 if filepath.Base(pattern) == "**" {
314 pattern, patternFile = filepath.Dir(pattern), filepath.Base(pattern)
325 if match, err := filepath.Match(pattern, name); err != nil {
330 name = filepath.Dir(name)
[all …]
Dfs.go55 fs.files[filepath.Clean(f)] = b
56 dir := filepath.Dir(f)
59 dir = filepath.Dir(dir)
153 if filepath.IsAbs(path) {
156 return filepath.Join(fs.srcDir, path)
163 rel, err := filepath.Rel(fs.srcDir, path)
240 paths, err := filepath.Glob(fs.toAbs(pattern))
292 name = filepath.Join(dir, file)
303 if filepath.IsAbs(to) {
306 name = filepath.Join(dir, to)
[all …]
/build/soong/cmd/soong_build/
Dqueryview.go57 …err := filepath.WalkDir(filepath.Join(topDir, "build/bazel"), func(path string, info fs.DirEntry, …
58 if filepath.Ext(path) == ".bazelrc" {
63 path, err = filepath.Rel(topDir, path)
68 Dir: filepath.Dir(path),
69 Basename: filepath.Base(path),
81 dir = filepath.Join(dir, f.Dir)
85 pathToFile := filepath.Join(dir, f.Basename)
94 dir = filepath.Join(dir, f.Dir)
98 pathToFile := filepath.Join(dir, f.Basename)
/build/soong/shared/
Dpaths.go39 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")
Dproto.go26 func Save(pb proto.Message, filepath string) (err error) {
31 tempFilepath := filepath + ".tmp"
36 if err := os.Rename(tempFilepath, filepath); err != nil {
/build/soong/cuj/
Dcuj.go92 log.SetOutput(filepath.Join(logsDir, "soong.log"))
93 trace.SetOutput(filepath.Join(logsDir, "build.trace"))
94 stat.AddOutput(status.NewVerboseLog(log, filepath.Join(logsDir, "verbose.log")))
95 stat.AddOutput(status.NewErrorLog(log, filepath.Join(logsDir, "error.log")))
96 stat.AddOutput(status.NewProtoErrorLog(log, filepath.Join(logsDir, "build_error")))
99 defer met.Dump(filepath.Join(logsDir, "soong_metrics"))
111 …trace.ImportMicrofactoryLog(filepath.Join(filepath.Dir(executable), "."+filepath.Base(executable)+…
139 cujDir := filepath.Join(outDir, "cuj_tests")
144 os.Setenv("OUT_DIR", filepath.Join(cujDir, "out"))
219 defer cujMetrics.Dump(filepath.Join(cujDir, "logs", "cuj_metrics.pb"))
[all …]
/build/soong/ui/build/
Dpath.go79 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")
113 py2Path, _ := filepath.Abs("prebuilts/build-tools/path/" + runtime.GOOS + "-x86/py2")
146 myPath := filepath.Join(config.OutDir(), ".path")
152 cfg.TrimPath, _ = filepath.Abs(".")
213 for _, pathEntry := range filepath.SplitList(origPath) {
241 err := os.Symlink("../.path_interposer", filepath.Join(myPath, name))
[all …]
Dfinder.go56 prunePath := filepath.Join(dir, name)
92 filepath.Join(dumpDir, "files.db"))
132 err := dumpListToFile(ctx, config, androidMks, filepath.Join(dumpDir, "Android.mk.list"))
150 err = dumpListToFile(ctx, config, cleanSpecs, filepath.Join(dumpDir, "CleanSpec.mk.list"))
159 …err = dumpListToFile(ctx, config, androidProductsMks, filepath.Join(dumpDir, "AndroidProducts.mk.l…
166 err = dumpListToFile(ctx, config, owners, filepath.Join(dumpDir, "OWNERS.list"))
173 err = dumpListToFile(ctx, config, metadataFiles, filepath.Join(dumpDir, "METADATA.list"))
180 err = dumpListToFile(ctx, config, testMappings, filepath.Join(dumpDir, "TEST_MAPPING.list"))
190 err = dumpListToFile(ctx, config, androidBps, filepath.Join(dumpDir, "Android.bp.list"))
197 err = dumpListToFile(ctx, config, configurationFiles, filepath.Join(dumpDir, "configuration.list"))
Dtest_build.go65 modulePathsDir := filepath.Join(outDir, ".module_paths")
66 rawFilesDir := filepath.Join(outDir, "soong", "raw")
67 variablesFilePath := filepath.Join(outDir, "soong", "soong.variables")
74 dexpreoptConfigFilePath := filepath.Join(outDir, "soong", "dexpreopt.config")
77 buildDatetimeFilePath := filepath.Join(outDir, "build_date.txt")
80 bpglob := filepath.Join(config.SoongOutDir(), "bpglob")
84 releaseConfigDir := filepath.Join(outDir, "soong", "release-config")
Dutil_test.go44 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")
Dcleanbuild.go34 files, err := filepath.Glob(glob)
64 removeGlobs(ctx, filepath.Join(config.OutDir(), "*"))
70 removeGlobs(ctx, filepath.Join(config.ProductOut(), "data", "*"))
86 return filepath.Join(hostCrossOutPath, path)
97 return filepath.Join(hostOutPath, path)
101 return filepath.Join(config.hostOutRoot(), "common", path)
106 return filepath.Join(productOutPath, path)
177 ensureDirectoriesExist(ctx, filepath.Dir(configFile))
224 newFile = filepath.Join(basePath, newFile)
281 oldPath := filepath.Join(basePath, oldPaths[0])
[all …]
Dconfig.go181 cfgFile := filepath.Join(os.Getenv("TOP"), dir, fmt.Sprintf("%s.%s", bc, jsonSuffix))
228 …if _, err := os.Stat(filepath.Join(ret.OutDir(), ninjaLogFileName)); errors.Is(err, os.ErrNotExist…
242 ret.environ.Set("OUT_DIR", filepath.Clean(outDir))
249 outDir = filepath.Join(baseDir, filepath.Base(wd))
271 ret.distDir = filepath.Clean(distDir)
273 ret.distDir = filepath.Join(ret.OutDir(), "dist")
281 ret.moduleDebugFile, _ = filepath.Abs(shared.JoinPath(ret.SoongOutDir(), "soong-debug-info.json"))
353 symbolizerPath := filepath.Join("prebuilts/clang/host", ret.HostPrebuiltTag(),
388 java8Home := filepath.Join("prebuilts/jdk/jdk8", ret.HostPrebuiltTag())
389 java21Home := filepath.Join("prebuilts/jdk/jdk21", ret.HostPrebuiltTag())
[all …]
Dbuild.go31 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), "Android.mk"))
32 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), "CleanSpec.mk"))
39 katiEnabledMarker := filepath.Join(config.SoongOutDir(), ".soong.kati_enabled")
50 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), "ninja_build"))
51 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), ".out-dir"))
155 lowerCase := filepath.Join(outDir, "casecheck.txt")
156 upperCase := filepath.Join(outDir, "CaseCheck.txt")
281 defer DumpRBEMetrics(ctx, config, filepath.Join(config.LogsDir(), "rbe_metrics.pb"))
420 subDir := filepath.Join(subDirs...)
421 destDir := filepath.Join(config.RealDistDir(), "soong_ui", subDir)
[all …]
/build/bazel/tests/bionic/
Dverify_bionic_outputs.sh37 local filepath="$(readlink -f $1)"; shift
38 local metadata="$($READELF -h ${filepath})"
44 local filepath="$(readlink -f $1)"; shift
45 local metadata="$($READELF -h ${filepath})"
51 local filepath="$(readlink -f $1)"; shift
53 local nm_output="$($NM -D "${filepath}")"
/build/blueprint/microfactory/
Dmicrofactory_test.go102 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/python/
Dpython_test.go66 filepath.Join("dir", bpFile): []byte(
80 filepath.Join("dir", bpFile): []byte(
98 filepath.Join("dir", bpFile): []byte(
120 filepath.Join("dir", bpFile): []byte(
157 filepath.Join("dir", bpFile): []byte(
184 filepath.Join("dir", bpFile): []byte(
229 filepath.Join("dir", bpFile): []byte(
301 filepath.Join("dir", "default.py"): nil,
302 filepath.Join("dir", "default_py2.py"): nil,
303 filepath.Join("dir", "default_py3.py"): nil,
[all …]
/build/make/tools/rbcrun/
Dhost_test.go48 if filepath.Base(starlarktestSrcFile) != "starlarktest.go" {
52 return filepath.Join(filepath.Dir(starlarktestSrcFile), filename)
74 return filepath.Join(filepath.Dir(thisSrcFile), "testdata")
93 filename := filepath.Join(filepath.Dir(thisSrcFile), starFile)
126 if err := os.Chdir(filepath.Dir(dir)); err != nil {
143 if err := os.Chdir(filepath.Dir(dir)); err != nil {
160 if err := os.Chdir(filepath.Dir(dir)); err != nil {
177 if err := os.Chdir(filepath.Dir(dir)); err != nil {
192 if err := os.Chdir(filepath.Dir(dir)); err != nil {
/build/soong/cmd/release_config/release_config_lib/
Dutil.go63 format := filepath.Ext(path)
87 if _, err := os.Stat(filepath.Dir(path)); err != nil {
88 if err = os.MkdirAll(filepath.Dir(path), 0775); err != nil {
125 switch filepath.Ext(path) {
138 path := filepath.Join(root, subdir)
143 return filepath.WalkDir(path, func(path string, d fs.DirEntry, err error) error {
188 return filepath.Join(outEnv, "soong", "release-config")
200 for topDir = workingDir; topDir != "/"; topDir = filepath.Dir(topDir) {
201 if _, err = os.Stat(filepath.Join(topDir, topFile)); err == nil {
202 return filepath.Rel(workingDir, topDir)
/build/bazel/ci/
Ddeterminism_test.sh75 local -r filepath="$1"
76 …orkspace -type f,l -iname "BUILD.bazel" -o -iname "*.bzl" | xargs "${PREBUILTS}"/md5sum > $filepath
77 find $OUT_DIR/soong/soong_injection -type f,l | xargs "${PREBUILTS}"/md5sum >> $filepath
78 "${PREBUILTS}"/md5sum $OUT_DIR/soong/Android-${TARGET_PRODUCT}.mk >> $filepath
80 "${PREBUILTS}"/md5sum $OUT_DIR/soong/build.${TARGET_PRODUCT}.ninja >> $filepath
/build/soong/mk2rbc/
Dconfig_variables_test.go41 return filepath.Join(filepath.Dir(myFile), "test")
45 testFile := filepath.Join(getTestDirectory(), "config_variables.mk.test")
Dfind_mockfs.go20 dir := filepath.Dir(name)
21 base := filepath.Base(name)
33 dir := filepath.Dir(name)
34 m.dirs[dir] = append(m.dirs[dir], myFileInfo{filepath.Base(name), isDir})
117 f = filepath.Dir(f)
/build/soong/ui/build/paths/
Dlogs.go47 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/etc/
Dinstall_symlink.go58 if filepath.Clean(m.properties.Symlink_target) != m.properties.Symlink_target {
62 if filepath.Clean(m.properties.Installed_location) != m.properties.Installed_location {
75 name := filepath.Base(m.properties.Installed_location)
76 installDir := android.PathForModuleInstall(ctx, filepath.Dir(m.properties.Installed_location))

12345678910