implot-rs/implot-sys-bindgen/build.rs

15 lines
486 B
Rust
Raw Permalink Normal View History

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")
);
}