Don't commit auto-generated code

This commit is contained in:
Rafael Caricio 2020-05-30 16:45:58 +02:00
parent 47ec536a10
commit 1b2c5da5e7
4 changed files with 5 additions and 11276 deletions

1
.gitignore vendored
View file

@ -12,3 +12,4 @@ Cargo.lock
examples/demo/target/
lvgl-sys/target/
lvgl/target/
lvgl-sys/src/bindings.rs

View file

@ -72,6 +72,8 @@ fn main() {
"-I",
vendor.to_str().unwrap(),
];
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
bindgen::Builder::default()
.header(shims_dir.join("lvgl_sys.h").to_str().unwrap())
.layout_tests(false)
@ -82,7 +84,7 @@ fn main() {
.clang_args(&cc_args)
.generate()
.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!");
}

File diff suppressed because it is too large Load diff

View file

@ -3,8 +3,7 @@
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
mod bindings;
pub use bindings::*;
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
#[cfg(test)]
mod tests {