14 lines
453 B
Rust
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();
|
|
}
|