Don't commit auto-generated code
This commit is contained in:
parent
47ec536a10
commit
1b2c5da5e7
4 changed files with 5 additions and 11276 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -12,3 +12,4 @@ Cargo.lock
|
||||||
examples/demo/target/
|
examples/demo/target/
|
||||||
lvgl-sys/target/
|
lvgl-sys/target/
|
||||||
lvgl/target/
|
lvgl/target/
|
||||||
|
lvgl-sys/src/bindings.rs
|
||||||
|
|
|
@ -72,6 +72,8 @@ fn main() {
|
||||||
"-I",
|
"-I",
|
||||||
vendor.to_str().unwrap(),
|
vendor.to_str().unwrap(),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
|
||||||
bindgen::Builder::default()
|
bindgen::Builder::default()
|
||||||
.header(shims_dir.join("lvgl_sys.h").to_str().unwrap())
|
.header(shims_dir.join("lvgl_sys.h").to_str().unwrap())
|
||||||
.layout_tests(false)
|
.layout_tests(false)
|
||||||
|
@ -82,7 +84,7 @@ fn main() {
|
||||||
.clang_args(&cc_args)
|
.clang_args(&cc_args)
|
||||||
.generate()
|
.generate()
|
||||||
.expect("Unable to generate bindings")
|
.expect("Unable to generate bindings")
|
||||||
.write_to_file(project_dir.join("src").join("bindings.rs"))
|
.write_to_file(out_path.join("bindings.rs"))
|
||||||
.expect("Can't write bindings!");
|
.expect("Can't write bindings!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
11273
lvgl-sys/src/bindings.rs
11273
lvgl-sys/src/bindings.rs
File diff suppressed because it is too large
Load diff
|
@ -3,8 +3,7 @@
|
||||||
#![allow(non_camel_case_types)]
|
#![allow(non_camel_case_types)]
|
||||||
#![allow(non_upper_case_globals)]
|
#![allow(non_upper_case_globals)]
|
||||||
|
|
||||||
mod bindings;
|
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||||
pub use bindings::*;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
Loading…
Reference in a new issue