| /external/rust/crates/which/src/ |
| D | lib.rs | 56 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which() 60 /// Find an executable binary's path by name, ignoring `cwd`. 64 /// Does not resolve relative paths. 80 pub fn which_global<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which_global() 84 /// Find all binaries with `binary_name` using `cwd` to resolve relative paths. 85 pub fn which_all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all() 86 let cwd = env::current_dir().ok(); in which_all() localVariable 92 finder.find(binary_name, env::var_os("PATH"), cwd, binary_checker) in which_all() 95 /// Find all binaries with `binary_name` ignoring `cwd`. 98 ) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all_global() [all …]
|
| /external/pigweed/pw_protobuf_compiler/ts/ |
| D | build.ts | 7 // https://www.apache.org/licenses/LICENSE-2.0 22 const googProtobufPath = require.resolve('google-protobuf'); 23 const googProtobufModule = fs.readFileSync(googProtobufPath, 'utf-8'); 27 '--proto': [String], 28 '--out': String, 31 '-p': '--proto', 34 const protos = args['--proto']; 35 const outDir = args['--out'] || 'protos'; 40 return new Promise<void>((resolve) => { 43 { cwd: process.cwd() }, [all …]
|
| /external/pigweed/pw_build/py/ |
| D | python_runner_test.py | 8 # https://www.apache.org/licenses/LICENSE-2.0 31 ROOT / 'some' / 'cwd', 85 self.assertEqual(label.dir, ROOT.joinpath('some/cwd')) 87 label.out_dir, ROOT.joinpath('out', toolchain, 'obj/some/cwd') 90 label.gen_dir, ROOT.joinpath('out', toolchain, 'gen/some/cwd') 97 self.assertEqual(label.dir, ROOT.joinpath('some/cwd/tgt')) 100 ROOT.joinpath('out', toolchain, 'obj/some/cwd/tgt'), 104 ROOT.joinpath('out', toolchain, 'gen/some/cwd/tgt'), 124 self.assertEqual(TEST_PATHS.resolve('//'), TEST_PATHS.root) 126 TEST_PATHS.resolve('//foo/bar'), TEST_PATHS.root / 'foo' / 'bar' [all …]
|
| /external/cronet/build/android/test/incremental_javac_gn/ |
| D | incremental_javac_test_android_library.py | 4 # Use of this source code is governed by a BSD-style license that can be 18 _CHROMIUM_SRC = pathlib.Path(__file__).resolve().parents[4].resolve() 31 args: shell command-line (as passed to subprocess.Popen()) 38 'Output:-----------------------------------------\n{}\n' 39 '------------------------------------------------\n').format( 44 def _run_command(args, check_returncode=True, cwd=None, env=None): argument 49 cwd=cwd, 81 cwd=_CHROMIUM_SRC) 86 parser.add_argument('--target-name', 90 parser.add_argument('--gn-args-path', [all …]
|
| /external/angle/build/android/test/incremental_javac_gn/ |
| D | incremental_javac_test_android_library.py | 4 # Use of this source code is governed by a BSD-style license that can be 18 _CHROMIUM_SRC = pathlib.Path(__file__).resolve().parents[4].resolve() 31 args: shell command-line (as passed to subprocess.Popen()) 38 'Output:-----------------------------------------\n{}\n' 39 '------------------------------------------------\n').format( 44 def _run_command(args, check_returncode=True, cwd=None, env=None): argument 49 cwd=cwd, 81 cwd=_CHROMIUM_SRC) 86 parser.add_argument('--target-name', 90 parser.add_argument('--gn-args-path', [all …]
|
| /external/python/cpython3/PC/layout/ |
| D | main.py | 4 See python make_layout.py --help for usage. 24 __path__ = [str(Path(__file__).resolve().parent)] 113 with open(ns.build / "TCL_LIBRARY.env", "r", encoding="utf-8-sig") as f: 284 # name argument added to address bpo-37641 348 with open(ns.temp / PYTHON_PTH_NAME, "w", encoding="utf-8") as f: 355 print("Lib/site-packages", file=f) 413 log_debug("Copy {} -> {}", src, ns.copy / dest) 440 log_debug("Copy {} -> {}", src, ns.copy / dest) 481 parser.add_argument("-v", help="Increase verbosity", action="count") 483 "-s", [all …]
|
| /external/autotest/utils/frozen_chromite/lib/ |
| D | path_util.py | 1 # -*- coding: utf-8 -*- 3 # Use of this source code is governed by a BSD-style license that can be 45 # tree checkout). This approach might result in arbitrary repo-contained 48 # repo-contained. Eventually we'll want to make this behavior explicit, by 67 # The chroot link allows us to resolve paths when the chroot is symlinked 96 recommended for non-chroot paths. 99 path (str|None): The path to resolve. 145 """Translates a fully-expanded host |path| into a chroot equivalent. 199 """Translates a fully-expanded chroot |path| into a host equivalent. 253 # only resolve its dirname but leave the basename intact. This means our [all …]
|
| /external/angle/util/posix/ |
| D | crash_handler_posix.cpp | 3 // Use of this source code is governed by a BSD-style license that can be 55 } while (eintr_wrapper_result == -1 && errno == EINTR); \ 66 } while (eintr_wrapper_result == -1 && errno == EINTR && \ 116 int ok = -1; 187 // seq_file only writes out a page-sized amount on each call. Refer to header 192 if (fd == -1) 197 proc_maps->clear(); 203 size_t pos = proc_maps->size(); 204 proc_maps->resize(pos + kReadSize); 211 proc_maps->clear(); [all …]
|
| /external/google-cloud-java/generation/new_client/ |
| D | new-client.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 34 "--api_shortname", 41 "--name-pretty", 45 help="The human-friendly name that appears in README.md" 48 "--product-docs", 55 "--api-description", 63 "--release-level", 67 help="A label that appears in repo-metadata.json. The first library " 71 "--transport", 75 help="A label that appears in repo-metadata.json" [all …]
|
| /external/python/cpython3/kokoro/ |
| D | prepare_windows_externals.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 26 # Use resolve to ensure consistent capitalization between runs of this script, which is important 28 PYTHON_SRC = Path(__file__).parent.parent.resolve() 31 CMAKE_BIN = TOP / 'prebuilts/cmake/windows-x86/bin/cmake.exe' 35 def create_new_dir(path: Path) -> None: 41 def run_cmd(args: List[Union[str, Path]], cwd: Path) -> None: 42 print(f'cd {cwd}') 45 subprocess.run(str_args, cwd=cwd, check=True) 48 def read_xml_file(path: Path) -> minidom.Element: 53 def write_xml_file(root: minidom.Element, path: Path) -> None: [all …]
|
| /external/pigweed/pw_build/py/pw_build/ |
| D | gn_resolver.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 36 def abspath(path: Path) -> Path: 42 """The set of paths needed to resolve GN paths to filesystem paths.""" 46 cwd: Path 51 def resolve(self, gn_path: str) -> Path: member in GnPaths 56 return abspath(self.cwd.joinpath(gn_path)) 58 def resolve_paths(self, gn_paths: str, sep: str = ';') -> str: 60 return sep.join(str(self.resolve(path)) for path in gn_paths.split(sep)) 78 # Handle explicitly-specified toolchains 80 label, toolchain = label[:-1].rsplit('(', 1) [all …]
|
| /external/pigweed/ts/ |
| D | buildprotos.ts | 7 // https://www.apache.org/licenses/LICENSE-2.0 20 return new Promise<void>((resolve) => { 23 { cwd: process.cwd() }, 30 resolve(); 63 const protoData = fs.readFileSync(protoPath, 'utf-8'); 66 if (protoData.indexOf(`import "${remapImportFrom}"`) !== -1) { 80 'ts-node', 81 [`./pw_protobuf_compiler/ts/build.ts`, `--out dist/protos`].concat( 82 protos.map((proto) => `-p ${proto}`),
|
| /external/flatbuffers/scripts/ |
| D | check_generate_code.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 24 script_path = Path(__file__).parent.resolve() 29 result = subprocess.run(["git", "diff", "--quiet"], cwd=root_path) 40 subprocess.run(["git", "diff", "--binary", "--exit-code"], cwd=root_path) 47 subprocess.run(gen_cmd, cwd=root_path) 49 result = subprocess.run(["git", "diff", "--quiet"], cwd=root_path) 60 subprocess.run(["git", "diff", "--binary", "--exit-code"], cwd=root_path)
|
| D | util.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 21 script_path = Path(__file__).parent.resolve() 37 def flatc(options, schema, prefix=None, include=None, data=None, cwd=root_path): argument 40 cmd += ["-o"] + [prefix] 42 cmd += ["-I"] + [include] 51 return subprocess.check_call(cmd, cwd=str(cwd))
|
| /external/pigweed/pw_presubmit/py/pw_presubmit/ |
| D | python_checks.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 64 def _transform_lcov_file_paths(lcov_file: Path, repo_root: Path) -> str: 86 # pylint: disable=no-member 88 repo_root # type: ignore[attr-defined] 90 # pylint: enable=no-member 96 # pylint: disable=no-member 98 repo_root # type: ignore[attr-defined] 100 # pylint: enable=no-member 126 '--keep', 128 cwd=ctx.output_dir, [all …]
|
| /external/swiftshader/tests/check_build_files/ |
| D | main.go | 7 // http://www.apache.org/licenses/LICENSE-2.0 16 // references to non-existent files. 30 func cwd() string { func 38 var root = flag.String("root", cwd(), "root project directory") 114 continue // Build target, we can't resolve. 129 return nil // Env vars we can't resolve 132 continue // Build target, we can't resolve. 147 continue // Build target, we can't resolve. 183 for _, match := range re.FindAllStringSubmatch(text, -1) {
|
| /external/python/pyfakefs/pyfakefs/ |
| D | fake_path.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 49 def _copy_module(old: ModuleType) -> ModuleType: 74 def dir() -> List[str]: 114 self._os_path.os = self.os = os_module # type: ignore[attr-defined] 118 def reset(cls, filesystem: "FakeFilesystem") -> None: 125 def exists(self, path: AnyStr) -> bool: 136 def lexists(self, path: AnyStr) -> bool: 156 file_obj = self.filesystem.resolve(path) 165 def isabs(self, path: AnyStr) -> bool: 172 def isdir(self, path: AnyStr) -> bool: [all …]
|
| D | fake_filesystem.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 22 >>> pathname = '/a/new/dir/new-file' 73 ['new-file'] 185 is_case_sensitive: `True` if a case-sensitive file system is assumed. 202 ) -> None: 226 # Windows fs on non-Windows systems and vice verse; 228 # Windows-specific features 231 # can be used to test some MacOS-specific behavior under other systems 234 # is_case_sensitive can be used to test pyfakefs for case-sensitive 235 # file systems on non-case-sensitive systems and vice verse [all …]
|
| /external/tensorflow/tensorflow/tools/docs/ |
| D | build_cc_api_headers.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 31 DOCS_TOOLS_DIR = pathlib.Path(__file__).resolve().parent 43 cwd=TENSORFLOW_ROOT) 47 cwd=TENSORFLOW_ROOT) 49 ['cp', '--dereference', '-r', 'bazel-bin', output_dir / 'bazel-genfiles'], 50 cwd=TENSORFLOW_ROOT)
|
| /external/flatbuffers/tests/annotated_binary/ |
| D | generate_annotations.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 23 script_path = Path(__file__).parent.resolve() 44 def flatc_annotate(schema, file, cwd=script_path): argument 45 cmd = [str(flatc_path), "--annotate", schema, file] 46 result = subprocess.run(cmd, cwd=str(cwd), check=True)
|
| /external/oss-fuzz/projects/grpc/ |
| D | build.sh | 1 #!/bin/bash -eu 8 # http://www.apache.org/licenses/LICENSE-2.0 18 set -o errexit 19 set -o nounset 42 # Temporary hack, see https://github.com/google/oss-fuzz/issues/383 43 readonly NO_VPTR='--copt=-fno-sanitize=vptr --linkopt=-fno-sanitize=vptr' 46 # Copy $CFLAGS and $CXXFLAGS into Bazel command-line flags, for both 49 # Some flags, such as `-stdlib=libc++`, generate warnings if used on a C source 50 # file. Since the build runs with `-Werror` this will cause it to break, so we 51 # use `--conlyopt` and `--cxxopt` instead of `--copt`. [all …]
|
| /external/flatbuffers/tests/ |
| D | TypeScriptTest.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 25 tests_path = Path(__file__).parent.resolve() 42 def check_call(args, cwd=tests_path): argument 43 subprocess.check_call(args, cwd=str(cwd), shell=is_windows) 46 def flatc(options, schema, prefix=None, include=None, data=None, cwd=tests_path): argument 49 cmd += ["-o"] + [prefix] 51 cmd += ["-I"] + [include] 60 check_call(["npm", "install", "--silent"]) 64 options=["--ts", "--gen-name-strings", "--gen-mutable", "--gen-object-api"], 70 options=["--gen-object-api", "-b"], [all …]
|
| /external/rust/crates/anyhow/src/ |
| D | backtrace.rs | 117 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() 143 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() 151 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() 173 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() 187 fn enabled() -> bool { in enabled() 206 pub(crate) fn capture() -> Backtrace { in capture() 217 fn create(ip: usize) -> Backtrace { in create() 247 pub(crate) fn status(&self) -> BacktraceStatus { in status() 257 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() 271 // When printing paths we try to strip the cwd if it exists, in fmt() [all …]
|
| /external/pigweed/docs/ |
| D | run_doxygen.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 24 def _parse_args() -> argparse.Namespace: 27 '--gn-root', 33 '--pigweed-modules-file', 39 '--output-dir', 45 '--doxygen-config', 51 '--include-paths', 64 ) -> None: 65 root_build_dir = Path.cwd() 69 str((gn_root / path).resolve()) [all …]
|
| /external/oss-fuzz/projects/esp-v2/ |
| D | build.sh | 1 #!/bin/bash -eu 8 # http://www.apache.org/licenses/LICENSE-2.0 26 # Copy $CFLAGS and $CXXFLAGS into Bazel command-line flags, for both 29 # Some flags, such as `-stdlib=libc++`, generate warnings if used on a C source 30 # file. Since the build runs with `-Werror` this will cause it to break, so we 31 # use `--conlyopt` and `--cxxopt` instead of `--copt`. 33 declare -r EXTRA_BAZEL_FLAGS="$( 35 echo "--conlyopt=${f}" "--linkopt=${f}" 38 echo "--cxxopt=${f}" "--linkopt=${f}" 45 …echo "--linkopt=\"$(find $(llvm-config --libdir) -name libclang_rt.ubsan_standalone_cxx-x86_64.a |… [all …]
|