mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-26 12:59:00 +00:00
Use target-specific dependencies for mandatory system libs
This commit is contained in:
parent
abeaa9ce6a
commit
607a0c7df4
@ -15,3 +15,9 @@ travis-ci = { repository = "Gekkio/imgui-rs" }
|
|||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
cc = "1.0"
|
cc = "1.0"
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
|
core-foundation = "0.6"
|
||||||
|
|
||||||
|
[target.'cfg(windows)'.dependencies]
|
||||||
|
winapi = { version = "0.3", features = ["imm"] }
|
||||||
|
|||||||
@ -30,8 +30,5 @@ fn main() -> io::Result<()> {
|
|||||||
build.file(path);
|
build.file(path);
|
||||||
}
|
}
|
||||||
build.compile("libcimgui.a");
|
build.compile("libcimgui.a");
|
||||||
if std::env::var("TARGET").unwrap().contains("-apple") {
|
|
||||||
println!("cargo:rustc-link-lib=framework=CoreFoundation");
|
|
||||||
}
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user