Lines Matching refs:directory
144 fn search_directory(directory: &Path, filenames: &[String]) -> Vec<(PathBuf, String)> { in search_directory()
148 .filter_map(|f| directory.join(f).to_str().map(ToOwned::to_owned)); in search_directory()
173 Some((directory.to_owned(), filename.into())) in search_directory()
181 fn search_directories(directory: &Path, filenames: &[String]) -> Vec<(PathBuf, String)> { in search_directories()
182 let mut results = search_directory(directory, filenames); in search_directories()
189 if cfg!(target_os = "windows") && directory.ends_with("lib") { in search_directories()
190 let sibling = directory.parent().unwrap().join("bin"); in search_directories()
219 let directory = Path::new(output.lines().next().unwrap()).to_path_buf(); in search_libclang_directories() localVariable
220 found.extend(search_directories(&directory.join("bin"), files)); in search_libclang_directories()
221 found.extend(search_directories(&directory.join("lib"), files)); in search_libclang_directories()
222 found.extend(search_directories(&directory.join("lib64"), files)); in search_libclang_directories()
229 let directory = Path::new(output.lines().next().unwrap()).to_path_buf(); in search_libclang_directories() localVariable
230 let directory = directory.join("Toolchains/XcodeDefault.xctoolchain/usr/lib"); in search_libclang_directories() localVariable
231 found.extend(search_directories(&directory, files)); in search_libclang_directories()
238 for directory in path.split(':').map(Path::new) { in search_libclang_directories()
239 found.extend(search_directories(&directory, files)); in search_libclang_directories()
258 for directory in directories.iter().rev() { in search_libclang_directories()
259 if let Ok(directories) = glob::glob_with(directory, options) { in search_libclang_directories()
260 for directory in directories.filter_map(Result::ok).filter(|p| p.is_dir()) { in search_libclang_directories()
261 found.extend(search_directories(&directory, files)); in search_libclang_directories()