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/
|
||||
lvgl-sys/target/
|
||||
lvgl/target/
|
||||
lvgl-sys/src/bindings.rs
|
||||
|
|
|
@ -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!");
|
||||
}
|
||||
|
||||
|
|
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_upper_case_globals)]
|
||||
|
||||
mod bindings;
|
||||
pub use bindings::*;
|
||||
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
|
Loading…
Reference in a new issue