| /external/bazel-skylib/tests/ |
| D | paths_tests.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 15 """Unit tests for paths.bzl.""" 17 load("//lib:paths.bzl", "paths") 21 """Unit tests for paths.basename.""" 22 env = unittest.begin(ctx) 25 asserts.equals(env, "", paths.basename("")) 26 asserts.equals(env, "", paths.basename("/")) 27 asserts.equals(env, "bar", paths.basename("foo///bar")) 30 asserts.equals(env, "foo", paths.basename("foo")) 31 asserts.equals(env, "foo", paths.basename("/foo")) [all …]
|
| /external/python/setuptools/setuptools/tests/ |
| D | test_egg_info.py | 50 def _extract_mv_version(pkg_info_lines: List[str]) -> Tuple[int, int]: 55 def env(self): member in TestEggInfo 56 with contexts.tempdir(prefix='setuptools-test.') as env_dir: 57 env = Environment(env_dir) 59 subs = 'home', 'lib', 'scripts', 'data', 'egg-base' 60 env.paths = dict( 64 list(map(os.mkdir, env.paths.values())) 66 env.paths['home']: { 69 egg-base = %(egg-base)s 70 """ % env.paths) [all …]
|
| /external/bcc/cmake/ |
| D | FindLibBpf.cmake | 1 # - Try to find libbpf 4 # LIBBPF_FOUND - system has libbpf 5 # LIBBPF_INCLUDE_DIR - the libbpf include directory 6 # LIBBPF_STATIC_LIBRARIES - the libbpf source directory 7 # LIBBPF_LIBRARIES - link these to use libbpf 15 # libbpf-static 16 # libbpf-devel 24 PATHS 29 ENV CPATH) 34 PATHS [all …]
|
| /external/vulkan-validation-layers/cmake/ |
| D | FindVulkan.cmake | 1 # Distributed under the OSI-approved BSD 3-Clause License. See accompanying 6 # ---------- 21 # Vulkan_FOUND - True if Vulkan was found 22 # Vulkan_INCLUDE_DIRS - include directories for Vulkan 23 # Vulkan_LIBRARIES - link against this library to use Vulkan 27 # Vulkan_INCLUDE_DIR - the Vulkan include directory 28 # Vulkan_LIBRARY - the path to the Vulkan library 34 PATHS 35 "$ENV{VULKAN_SDK}/Include" 40 NAMES vulkan-1 [all …]
|
| /external/bazelbuild-rules_cc/cc/private/toolchain/ |
| D | cc_configure.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 30 env = repository_ctx.os.environ 33 …should_detect_cpp_toolchain = "BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN" not in env or env["BAZEL_DO_NOT_… 36 paths = resolve_labels(repository_ctx, [ 41 paths["@rules_cc//cc/private/toolchain:BUILD.toolchains.tpl"], 45 …# C++ toolchain autoconfiguration was disabled by BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN env variable.") 61 overriden_tools: dict of tool paths to use instead of autoconfigured tools 64 env = repository_ctx.os.environ 66 … if "BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN" in env and env["BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN"] == "1": 67 paths = resolve_labels(repository_ctx, [ [all …]
|
| D | windows_cc_configure.bzl | 1 # pylint: disable=g-bad-file-header 8 # http://www.apache.org/licenses/LICENSE-2.0 35 if len(value) == 1 or value[-1] != "\"": 37 value = value[1:-1] 40 if value[-1] == "\\": 66 msys_root = tokens[0][:len(tokens[0]) - len("usr/bin")] 68 msys_root = tokens[0][:len(tokens[0]) - len("bin")] 75 …for tool in ["ar", "compat-ld", "cpp", "dwp", "gcc", "gcov", "ld", "nm", "objcopy", "objdump", "st… 85 """Get System root path on Windows, default is C:\\Windows. Doesn't %-escape the result.""" 95 def _add_system_root(repository_ctx, env): [all …]
|
| /external/eigen/bench/btl/cmake/ |
| D | FindACML.cmake | 9 PATHS 10 $ENV{ACMLDIR}/lib 11 $ENV{ACML_DIR}/lib 18 PATHS 21 $ENV{ACMLDIR}/lib 26 message(STATUS "Multi-threaded library not found, looking for single-threaded") 30 PATHS 31 $ENV{ACMLDIR}/lib 32 $ENV{ACML_DIR}/lib 37 PATHS [all …]
|
| /external/libxml2/ |
| D | .gitlab-ci.yml | 4 BASE_CONFIG: "--with-legacy" 6 - rm -rf libxml2-build 7 - mkdir libxml2-build 8 - ln -s /tests/xmlconf libxml2-build 10 - sh .gitlab-ci/test.sh 15 CFLAGS: "-O2" 20 CONFIG: "--without-python" 21 CFLAGS: "-O2 -std=c89 -D_XOPEN_SOURCE=600" 26 BASE_CONFIG: "--with-minimum" 27 CFLAGS: "-O2" [all …]
|
| /external/webrtc/tools_webrtc/ios/ |
| D | merge_ios_libs.py | 1 #!/usr/bin/env vpython3 5 # Use of this source code is governed by a BSD-style license 53 for library, paths in list(libs.items()): 54 if len(paths) < len(archs): 55 orphaned_libs[library] = paths 57 valid_libs[library] = paths 58 for library, paths in list(orphaned_libs.items()): 59 components = library[:-2].split('_')[:-1] 65 valid_libs[parent_library].extend(paths) 68 components = components[:-1] [all …]
|
| /external/python/cpython3/Lib/test/ |
| D | test_embed.py | 55 env = dict(os.environ) 57 for key in list(env): 59 del env[key] 60 return env 85 def run_embedded_interpreter(self, *args, env=None, argument 91 if env is not None and MS_WINDOWS: 94 env = env.copy() 95 env['SYSTEMROOT'] = os.environ['SYSTEMROOT'] 101 env=env, 110 print(f"--- {cmd} failed ---") [all …]
|
| /external/rust/crates/clang-sys/src/ |
| D | support.rs | 1 // SPDX-License-Identifier: Apache-2.0 7 use std::{env, io}; 35 fn new(path: impl AsRef<Path>, args: &[String]) -> Self { in new() 49 /// directory returned by `llvm-config --bindir` is searched. On macOS 50 /// systems, `xcodebuild -find clang` will next be queried. Last, the 53 /// ## Cross-compilation 55 /// If target arguments are provided (e.g., `-target` followed by a target 56 /// like `x86_64-unknown-linux-gnu`) then this method will prefer a 57 /// target-prefixed instance of `clang` (e.g., 58 /// `x86_64-unknown-linux-gnu-clang` for the above example). [all …]
|
| /external/eigen/cmake/ |
| D | FindGSL.cmake | 11 # on Unix/Linux with additional linker flags from "gsl-config --libs" 13 # CMAKE_GSL_CXX_FLAGS = Unix compiler flags for GSL, essentially "`gsl-config --cxxflags`" 23 # www.mip.informatik.uni-kiel.de 24 # -------------------------------- 27 # JW tested with gsl-1.8, Windows XP, MSVS 7.1 30 $ENV{GSL_ROOT_DIR} 33 $ENV{GSL_DIR} 34 $ENV{GSL_HOME} 35 $ENV{EXTRA} 40 PATHS ${GSL_POSSIBLE_ROOT_DIRS} [all …]
|
| D | FindHWLOC.cmake | 3 # @copyright (c) 2009-2014 The University of Tennessee and The University 6 # @copyright (c) 2012-2014 Inria. All rights reserved. 7 # @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights r… 11 # - Find HWLOC include dirs and libraries 18 # HWLOC_FOUND - True if headers and requested libraries were found 19 # HWLOC_INCLUDE_DIRS - hwloc include directories 20 # HWLOC_LIBRARY_DIRS - Link directories for hwloc libraries 21 # HWLOC_LIBRARIES - hwloc component libraries to be linked 23 # The user can give specific paths where to find the libraries adding cmake 24 # options at configure (ex: cmake path/to/project -DHWLOC_DIR=path/to/hwloc): [all …]
|
| D | FindMetis.cmake | 3 # @copyright (c) 2009-2014 The University of Tennessee and The University 6 # @copyright (c) 2012-2014 Inria. All rights reserved. 7 # @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights r… 11 # - Find METIS include dirs and libraries 19 # METIS_FOUND - True if headers and requested libraries were found 20 # METIS_INCLUDE_DIRS - metis include directories 21 # METIS_LIBRARY_DIRS - Link directories for metis libraries 22 # METIS_LIBRARIES - metis component libraries to be linked 24 # The user can give specific paths where to find the libraries adding cmake 25 # options at configure (ex: cmake path/to/project -DMETIS_DIR=path/to/metis): [all …]
|
| D | FindFFTW.cmake | 1 # - Find the FFTW library 20 if( NOT FFTW_ROOT AND ENV{FFTWDIR} ) 21 set( FFTW_ROOT $ENV{FFTWDIR} ) 48 PATHS ${FFTW_ROOT} 56 PATHS ${FFTW_ROOT} 64 PATHS ${FFTW_ROOT} 73 PATHS ${FFTW_ROOT} 83 PATHS ${PKG_FFTW_LIBRARY_DIRS} ${LIB_INSTALL_DIR} 89 PATHS ${PKG_FFTW_LIBRARY_DIRS} ${LIB_INSTALL_DIR} 96 PATHS ${PKG_FFTW_LIBRARY_DIRS} ${LIB_INSTALL_DIR} [all …]
|
| /external/pigweed/pw_presubmit/py/pw_presubmit/ |
| D | presubmit_context.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 41 import pw_cli.env 62 def load(env: dict[str, str] | None = None) -> FormatOptions: 63 config = pw_env_setup.config_file.load(env=env) 71 def filter_paths(self, paths: Iterable[Path]) -> tuple[Path, ...]: 72 root = Path(pw_cli.env.pigweed_environment().PW_PROJECT_ROOT) 73 relpaths = [x.relative_to(root) for x in paths] 80 def get_buildbucket_info(bbid) -> dict[str, Any]: 85 ['bb', 'get', '-json', '-p', f'{bbid}'], text=True 95 round: The zero-indexed round number. [all …]
|
| /external/libcxx/utils/libcxx/ |
| D | util.py | 1 #===----------------------------------------------------------------------===## 8 #===----------------------------------------------------------------------===## 23 # Encode to UTF-8 to get binary data. 26 return str.encode('utf-8') 35 return to_string(bytes.decode('utf-8')) 78 report += "Standard Output:\n--\n%s--\n" % out 80 report += "Standard Error:\n--\n%s--\n" % err 85 def capture(args, env=None): argument 86 """capture(command) - Run the given command (or argv list) in a shell and 88 exits with a non-zero status.""" [all …]
|
| /external/llvm/utils/lit/lit/ |
| D | util.py | 12 # Encode to UTF-8 to get binary data. 13 return str.encode('utf-8') 22 return to_string(bytes.decode('utf-8')) 38 return int(capture(['sysctl', '-n', 'hw.ncpu'])) 49 """mkdir_p(path) - Make the "path" directory, if it does not exist; this 66 def capture(args, env=None): argument 67 """capture(command) - Run the given command (or argv list) in a shell and 70 env=env) 74 def which(command, paths = None): argument 75 """which(command, [paths]) - Look up the given command in the paths string [all …]
|
| /external/rust/crates/which/src/ |
| D | lib.rs | 25 use std::env; 56 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which() 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() 92 finder.find(binary_name, env::var_os("PATH"), cwd, binary_checker) in which_all() 98 ) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all_global() 105 env::var_os("PATH"), in which_all_global() [all …]
|
| D | finder.rs | 10 use std::env; 18 fn is_valid(&self, path: &Path) -> bool; in is_valid() 22 fn has_separator(&self) -> bool; in has_separator() 24 fn to_absolute<P>(self, cwd: P) -> PathBuf in to_absolute() 30 fn has_separator(&self) -> bool { in has_separator() 34 fn to_absolute<P>(self, cwd: P) -> PathBuf in to_absolute() 51 pub fn new() -> Finder { in new() 58 paths: Option<U>, in find() 61 ) -> Result<impl Iterator<Item = PathBuf>> in find() 75 // Search binary in PATHs(defined in environment variable). in find() [all …]
|
| /external/pigweed/pw_ide/py/pw_ide/ |
| D | activate.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 14 # pylint: disable=line-too-long 23 source <(python3 ./pw_ide/activate.py -s bash) 26 source <({environment}/pigweed-venv/bin/python ./pw_ide/activate.py -s bash) 33 python3 ./pw_ide/activate.py -x 'pw ide cpp --list' 36 {environment}/pigweed-venv/bin/python ./pw_ide/activate.py -x 'pw ide cpp --list' 39 {environment}/pigweed-venv/Scripts/pythonw.exe ./pw_ide/activate.py -x 'pw ide cpp --list' 41 3. Produce a JSON representation of the Pigweed activated environment (-O) or 43 environment (-o). See the help for more detailed information on the options 47 python3 ./pw_ide/activate.py -o [all …]
|
| /external/wayland-protocols/bazel/ |
| D | gensrcs_test.bzl | 8 http://www.apache.org/licenses/LICENSE-2.0 19 load("@bazel_skylib//lib:paths.bzl", "paths") 28 # ==== Check the output paths created by gensrcs ==== 31 env = analysistest.begin(ctx) 32 target = analysistest.target_under_test(env) 33 actions = analysistest.target_actions(env) 37 env, 44 env, 46 paths.join( 48 paths.dirname(ctx.build_file_path), [all …]
|
| /external/bazelbuild-rules_testing/lib/ |
| D | util.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 20 load("@bazel_skylib//lib:paths.bzl", "paths") 28 # copybara-marker: skip-ci-tag 32 # targets. When the rule-under-test is a test rule, it prevents trying to run 34 # more validation logic) when --build_tests_only is enabled. 37 # copybara-marker: skip-coverage-tag 46 * An error is raised when the same non-list key occurs more than once. 90 rule: rule-like function. 98 """Returns the `short_path` paths for a depset of files.""" 102 """Returns the root-relative short paths for the files in runfiles. [all …]
|
| /external/python/setuptools/setuptools/_distutils/ |
| D | _msvccompiler.py | 77 "-latest", 78 "-prerelease", 79 "-requires", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", 80 "-property", "installationPath", 81 "-products", "*", 100 # bpo-38597: Removed vcruntime return value 132 ).decode('utf-16le', errors='replace') 138 env = { 145 return env 147 def _find_exe(exe, paths=None): argument [all …]
|
| /external/bazelbuild-rules_go/proto/ |
| D | compiler.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 16 "@bazel_skylib//lib:paths.bzl", 17 "paths", 42 of strings mapping proto import paths to Go import paths, and importpath is 65 imports: depset of strings mapping proto import paths to Go import paths. 92 path = importpath + "/" + src.basename[:-len(".proto")], 97 outpath = out.dirname[:-len(importpath)] 102 args.add("-protoc", compiler.internal.protoc) 103 args.add("-importpath", importpath) 104 args.add("-out_path", outpath) [all …]
|