cacao/build.rs

28 lines
866 B
Rust
Raw Normal View History

//! Emits linker flags depending on platforms and features.
2020-02-28 13:34:34 +11:00
fn main() {
println!("cargo:rustc-link-lib=framework=Foundation");
2022-07-11 01:15:29 +10:00
#[cfg(feature = "appkit")]
println!("cargo:rustc-link-lib=framework=AppKit");
2022-07-11 01:15:29 +10:00
#[cfg(feature = "uikit")]
println!("cargo:rustc-link-lib=framework=UIKit");
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-11 01:15:29 +10:00
#[cfg(feature = "cloudkit")]
println!("cargo:rustc-link-lib=framework=CloudKit");
#[cfg(feature = "user-notifications")]
println!("cargo:rustc-link-lib=framework=UserNotifications");
2022-07-11 01:15:29 +10:00
#[cfg(feature = "quicklook")]
println!("cargo:rustc-link-lib=framework=QuickLook");
2020-02-28 13:34:34 +11:00
}