6bdfd76d51
not sure why bindgen switches to i32 everywhere moved imgui dependency up one step as this seems where its actually used
14 lines
486 B
Rust
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")
|
|
);
|
|
}
|