1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
621 B
Rust
Raw Normal View History

use std::env;
use std::path::PathBuf;
fn main() {
let header = "../../bin/default/include/config.h";
println!("cargo:rerun-if-changed={}", header);
let additions_header = "./additions.h";
println!("cargo:rerun-if-changed={}", additions_header);
let bindings = bindgen::Builder::default()
.header(additions_header)
.header(header)
.generate()
.expect("Failed generating config bindings!");
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
bindings
.write_to_file(out_path.join("bindings.rs"))
.expect("Couldn't write bindings!");
}