2021-01-16 17:11:04 -08:00
|
|
|
//! Emits linker flags depending on platforms and features.
|
2020-02-27 18:34:34 -08:00
|
|
|
|
|
|
|
fn main() {
|
2020-04-01 01:04:34 -07:00
|
|
|
println!("cargo:rustc-link-lib=framework=Foundation");
|
2022-07-10 17:15:29 +02:00
|
|
|
|
2021-08-07 22:31:48 -07:00
|
|
|
#[cfg(feature = "appkit")]
|
|
|
|
println!("cargo:rustc-link-lib=framework=AppKit");
|
2022-07-10 17:15:29 +02:00
|
|
|
|
2021-08-07 22:31:48 -07:00
|
|
|
#[cfg(feature = "uikit")]
|
|
|
|
println!("cargo:rustc-link-lib=framework=UIKit");
|
2020-03-17 19:11:03 -07:00
|
|
|
|
2020-04-01 01:04:34 -07:00
|
|
|
println!("cargo:rustc-link-lib=framework=CoreGraphics");
|
|
|
|
println!("cargo:rustc-link-lib=framework=QuartzCore");
|
|
|
|
println!("cargo:rustc-link-lib=framework=Security");
|
|
|
|
|
|
|
|
#[cfg(feature = "webview")]
|
|
|
|
println!("cargo:rustc-link-lib=framework=WebKit");
|
2022-07-10 17:15:29 +02:00
|
|
|
|
2020-04-01 01:04:34 -07:00
|
|
|
#[cfg(feature = "cloudkit")]
|
|
|
|
println!("cargo:rustc-link-lib=framework=CloudKit");
|
|
|
|
|
|
|
|
#[cfg(feature = "user-notifications")]
|
|
|
|
println!("cargo:rustc-link-lib=framework=UserNotifications");
|
2022-07-10 17:15:29 +02:00
|
|
|
|
2021-01-16 17:11:04 -08:00
|
|
|
#[cfg(feature = "quicklook")]
|
|
|
|
println!("cargo:rustc-link-lib=framework=QuickLook");
|
2020-02-27 18:34:34 -08:00
|
|
|
}
|