1*415e46eaSLoGin use std::{collections::HashSet, path::PathBuf}; 2*415e46eaSLoGin 3*415e46eaSLoGin use crate::utils::FileUtils; 4*415e46eaSLoGin setup_common_files(files: &mut HashSet<PathBuf>)5*415e46eaSLoGinpub(super) fn setup_common_files(files: &mut HashSet<PathBuf>) { 6*415e46eaSLoGin const DIRS: [&str; 3] = ["src/common", "src/debug/traceback", "src/libs"]; 7*415e46eaSLoGin DIRS.iter().for_each(|dir| { 8*415e46eaSLoGin FileUtils::list_all_files(&dir.into(), Some("c"), true) 9*415e46eaSLoGin .into_iter() 10*415e46eaSLoGin .for_each(|f| { 11*415e46eaSLoGin files.insert(f); 12*415e46eaSLoGin }); 13*415e46eaSLoGin }); 14*415e46eaSLoGin } 15*415e46eaSLoGin setup_common_include_dir(include_dirs: &mut HashSet<PathBuf>)16*415e46eaSLoGinpub(super) fn setup_common_include_dir(include_dirs: &mut HashSet<PathBuf>) { 17*415e46eaSLoGin const DIRS: [&str; 3] = ["src/include", "src/common", "src"]; 18*415e46eaSLoGin DIRS.iter().for_each(|dir| { 19*415e46eaSLoGin include_dirs.insert(dir.into()); 20*415e46eaSLoGin }); 21*415e46eaSLoGin } 22