Lines Matching refs:c
17 let mut c = cc::Build::new(); in build() localVariable
19 Self::setup_global_flags(&mut c); in build()
20 Self::setup_defines(&mut c); in build()
21 Self::setup_global_include_dir(&mut c); in build()
22 Self::setup_files(&mut c); in build()
23 c.compile("dragonos_kernel_cfiles"); in build()
26 fn setup_global_flags(c: &mut Build) { in setup_global_flags()
27 c.flag("-fno-builtin") in setup_global_flags()
36 current_cfiles_arch().setup_global_flags(c); in setup_global_flags()
39 fn setup_defines(c: &mut Build) { in setup_defines()
41 c.define("EMULATOR", Some(k.as_str())); in setup_defines()
43 c.define("EMULATOR", "__NO_EMULATION__"); in setup_defines()
46 current_cfiles_arch().setup_defines(c); in setup_defines()
49 fn setup_global_include_dir(c: &mut Build) { in setup_global_include_dir()
52 c.include("."); in setup_global_include_dir()
62 c.include(dir); in setup_global_include_dir()
67 fn setup_files(c: &mut Build) { in setup_files()
69 current_cfiles_arch().setup_files(c, &mut files); in setup_files()
74 c.files(files.as_slice()); in setup_files()