better
This commit is contained in:
parent
c50f57df15
commit
b2a57bcf1d
1 changed files with 0 additions and 11 deletions
11
build.rs
11
build.rs
|
|
@ -23,16 +23,5 @@ fn main()
|
|||
|
||||
bindings.write_to_file(out_file).expect("Writing failure");
|
||||
|
||||
let builder = bindgen::builder();
|
||||
|
||||
let bindings = builder.header("include/linux/fb.h")
|
||||
.generate()
|
||||
.expect("The Linux headers must be installed");
|
||||
|
||||
let out_dir: PathBuf = env::var("OUT_DIR")
|
||||
.expect("Environment variable $OUT_DIR must be defined")
|
||||
.into();
|
||||
let out_file = out_dir.join("linuxfb.rs");
|
||||
|
||||
bindings.write_to_file(out_file).expect("Writing failure");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue