87533d576f
Feature flags that clash are no fun. This reworks a few things so that docs can properly build with all feature flags at once and note their support. Also adds a supported table to the README for ease of discovery.
28 lines
881 B
Rust
28 lines
881 B
Rust
//! Emits linker flags depending on platforms and features.
|
|
|
|
fn main() {
|
|
println!("cargo:rustc-link-lib=framework=Foundation");
|
|
|
|
#[cfg(feature = "appkit")]
|
|
println!("cargo:rustc-link-lib=framework=AppKit");
|
|
|
|
#[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");
|
|
|
|
#[cfg(feature = "cloudkit")]
|
|
println!("cargo:rustc-link-lib=framework=CloudKit");
|
|
|
|
#[cfg(feature = "user-notifications")]
|
|
println!("cargo:rustc-link-lib=framework=UserNotifications");
|
|
|
|
#[cfg(feature = "quicklook")]
|
|
println!("cargo:rustc-link-lib=framework=QuickLook");
|
|
}
|