os/lib/acpica-rs/build.rs
Mathieu Strypsteen 4ca93ada92
Some checks failed
Build / build (push) Failing after 2m53s
Split acpica-rs into a separate library
2024-10-31 17:40:23 +01:00

14 lines
453 B
Rust

use bindgen::Builder;
fn main() {
println!("cargo::rustc-link-search=lib/acpica-build");
println!("cargo::rustc-link-lib=acpica");
let bindings = Builder::default()
.use_core()
.clang_arg("-I../acpica-build")
.header("../acpica-build/acpica.h")
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.generate()
.unwrap();
bindings.write_to_file("src/acpica-bindings.rs").unwrap();
}