xref: /DragonOS/build-scripts/kernel_build/src/lib.rs (revision 7c28051e8c601312d3d0fd7bcb71bc71450d10c0)
1 #[macro_use]
2 extern crate lazy_static;
3 extern crate cc;
4 
5 mod bindgen;
6 mod cfiles;
7 mod constant;
8 mod kconfig;
9 mod utils;
10 
11 /// 运行构建
12 pub fn run() {
13     println!("cargo:rustc-link-search=src");
14 
15     crate::bindgen::generate_bindings();
16     crate::cfiles::CFilesBuilder::build();
17     crate::kconfig::KConfigBuilder::build();
18 }
19