only run bindgen on ImPlot... names
not sure why bindgen switches to i32 everywhere moved imgui dependency up one step as this seems where its actually used
This commit is contained in:
parent
cdc7e273c0
commit
6bdfd76d51
11 changed files with 31 additions and 8241 deletions
|
@ -4,9 +4,6 @@ version = "0.1.0"
|
|||
authors = ["Sandro Merkli"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
bindgen = "0.53.1"
|
||||
bindgen = "0.55.1"
|
||||
imgui-sys = { version = "0.5.0" }
|
||||
imgui = { version = "0.5.0" }
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
use std::env;
|
||||
use std::io::Write;
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn main() {
|
||||
// We just forward the DEP_IMGUI_THIRD_PARTY variable here because the
|
||||
|
|
|
@ -34,6 +34,8 @@ fn main() {
|
|||
)
|
||||
.parse_callbacks(Box::new(CargoCallbacks))
|
||||
.clang_arg("-DCIMGUI_DEFINE_ENUMS_AND_STRUCTS=1")
|
||||
.whitelist_function("ImPlot.*")
|
||||
.whitelist_type("ImPlot.*")
|
||||
.generate()
|
||||
.expect("Unable to generate bindings");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue