implot-rs/implot-sys-bindgen/build.rs
Benedikt Mandelkow 6bdfd76d51 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
2020-10-27 08:08:37 +01:00

14 lines
486 B
Rust

use std::env;
fn main() {
// We just forward the DEP_IMGUI_THIRD_PARTY variable here because the
// main function outside the build script does not actually see it
let cimgui_include_path =
env::var_os("DEP_IMGUI_THIRD_PARTY").expect("DEP_IMGUI_THIRD_PARTY not defined");
println!(
"cargo:rustc-env=DEP_IMGUI_THIRD_PARTY={}",
cimgui_include_path
.to_str()
.expect("Could not turn cimgui include path to string")
);
}