rfactor_sm_reader/build.rs

17 lines
512 B
Rust
Raw Permalink Normal View History

fn main() {
let bindings = bindgen::Builder::default()
.header("rfactor_plugin/InternalsPlugin.hpp")
.blocklist_file("/usr/include.*")
.ignore_functions()
.layout_tests(false)
.blocklist_item("_GLIBC:*")
.blocklist_type("std_.*")
.blocklist_item("__gnu_cxx.*")
.generate()
.expect("Unable to create rfactor structs");
bindings
.write_to_file("src/rfactor_structs.rs")
.expect("Failed to write rfactor bindings");
}