2023-01-12 18:29:53 +00:00
|
|
|
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_.*")
|
2023-11-29 09:51:40 +00:00
|
|
|
.blocklist_item("__gnu_cxx.*")
|
2023-01-12 18:29:53 +00:00
|
|
|
.generate()
|
|
|
|
.expect("Unable to create rfactor structs");
|
|
|
|
|
|
|
|
bindings
|
|
|
|
.write_to_file("src/rfactor_structs.rs")
|
|
|
|
.expect("Failed to write rfactor bindings");
|
|
|
|
}
|