mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 05:28:35 +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]
|
||||
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.compile("libcimgui.a");
|
||||
if std::env::var("TARGET").unwrap().contains("-apple") {
|
||||
println!("cargo:rustc-link-lib=framework=CoreFoundation");
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user