fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").map_or(false, |os| os == "macos")
&& std::env::var("TAO_LINK_COLORSYNC")
.map_or(false, |v| v == "1" || v.eq_ignore_ascii_case("true"))
{
println!("cargo:rustc-cfg=use_colorsync_cgdisplaycreateuuidfromdisplayid");
}
#[cfg(target_os = "macos")]
{
if std::env::var("CARGO_CFG_TARGET_OS").map_or(false, |os| os == "macos") {
println!("cargo:rustc-link-lib=framework=Carbon");
cc::Build::new()
.file("src/platform_impl/macos/carbon_hotkey/carbon_hotkey_binding.c")
.compile("carbon_hotkey_binding.a");
}
}
}