2020-02-28 13:34:34 +11:00
|
|
|
//! Specifies various frameworks to link against. Note that this is something where you probably
|
|
|
|
//! only want to be compiling this project on macOS. ;P
|
|
|
|
//!
|
|
|
|
//! (it checks to see if it's macOS before emitting anything, but still)
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
if std::env::var("TARGET").unwrap().contains("-apple") {
|
2020-03-18 10:55:09 +11:00
|
|
|
println!("cargo:rustc-link-lib=framework=Foundation");
|
2020-03-20 14:07:44 +11:00
|
|
|
println!("cargo:rustc-link-lib=framework=Cocoa");
|
2020-03-18 10:55:09 +11:00
|
|
|
println!("cargo:rustc-link-lib=framework=CoreGraphics");
|
2020-03-21 08:02:46 +11:00
|
|
|
println!("cargo:rustc-link-lib=framework=QuartzCore");
|
2020-03-18 10:55:09 +11:00
|
|
|
|
2020-02-28 13:34:34 +11:00
|
|
|
println!("cargo:rustc-link-lib=framework=Security");
|
2020-03-18 13:11:03 +11:00
|
|
|
|
|
|
|
#[cfg(feature = "webview")]
|
2020-02-28 13:34:34 +11:00
|
|
|
println!("cargo:rustc-link-lib=framework=WebKit");
|
2020-03-17 16:22:15 +11:00
|
|
|
|
|
|
|
#[cfg(feature = "cloudkit")]
|
|
|
|
println!("cargo:rustc-link-lib=framework=CloudKit");
|
2020-03-17 16:08:12 +11:00
|
|
|
|
|
|
|
#[cfg(feature = "user-notifications")]
|
2020-02-28 13:34:34 +11:00
|
|
|
println!("cargo:rustc-link-lib=framework=UserNotifications");
|
|
|
|
}
|
|
|
|
}
|