Home
last modified time | relevance | path

Searched refs:main_src (Results 1 – 5 of 5) sorted by relevance

/development/scripts/
Dcargo2rulesmk.py197 self.main_src = "" # follows crate_name parameter, shortened
221 if not is_dependent_file_path(self.main_src):
222 dir_name = os.path.dirname(self.main_src)
381 self.main_src = re.sub(
384 self.main_src = re.sub(
385 r"^\.\.\./github.com-[0-9a-f]*/", ".../", self.main_src
396 self.main_src = self.main_src[len(self.cargo_dir) + 1 :]
403 if not self.main_src:
406 self.srcs.append(self.main_src)
442 pkg = self.main_src
[all …]
/development/tools/cargo_embargo/src/cargo/
Dcargo_out.rs212 } else if let Some((output_filename, main_src)) = cur_test_key { in parse()
217 PathBuf::from(main_src), in parse()
343 (out.package_dir, out.main_src) = split_src_path(Path::new(arg))?; in from_rustc_invocation()
382 if out.main_src.as_os_str().is_empty() { in from_rustc_invocation()
418 if let Some(test_contents) = tests.get(&output_filename).and_then(|m| m.get(&out.main_src)) in from_rustc_invocation()
442 let main_src = src_path.strip_prefix(&package_dir).unwrap().to_path_buf(); in split_src_path() localVariable
444 Ok((package_dir, main_src)) in split_src_path()
Dmetadata.rs152 let main_src = split_src_path(&target.src_path, &package_dir); in parse_cargo_metadata() localVariable
173 main_src: main_src.to_owned(), in parse_cargo_metadata()
197 main_src: main_src.to_owned(), in parse_cargo_metadata()
303 if let Ok(main_src) = src_path.strip_prefix(package_dir) { in split_src_path()
304 main_src in split_src_path()
/development/tools/cargo_embargo/src/
Dcargo.rs95 pub main_src: PathBuf, // relative to package_dir field
Dmain.rs881 let suffix = crate_.main_src.to_string_lossy().into_owned(); in crate_to_bp_modules()
953 m.props.set("crate_root", crate_.main_src.clone()); in crate_to_bp_modules()
1046 package_cfg.test_data.get(crate_.main_src.to_string_lossy().as_ref()) in crate_to_bp_modules()
1104 contents += &format!("MODULE_SRCS := $(LOCAL_DIR)/{}\n", crate_.main_src.display()); in crate_to_rulesmk()