121a2f938e
- Added support for Image - Added a QuickLook feature, to enable thumbnail generation. - Added support for NSButton. - Fixed a bug where App activation under Big Sur would leave menus without the ability to be used. - Added the ability for Buttons and ToolbarItems to execute callbacks. - Added support for Labels and TextFields. - Added support for MenuItems to have callbacks as well. - Preliminary ListView support; you have to cache your ListViewRow items yourself for the time being, but it works. - Animation support for ListView operations. - Support for ScrollViews. - Helpers for dispatching actions to the main thread (for UI work). - Updated the Dispatcher trait to make thread handling simpler. - Basic font support.
32 lines
986 B
Rust
32 lines
986 B
Rust
//! Emits linker flags depending on platforms and features.
|
|
//!
|
|
//! (iOS/macOS only right now... maybe tvOS one day?)
|
|
|
|
fn main() {
|
|
let target = std::env::var("TARGET").unwrap();
|
|
|
|
println!("cargo:rustc-link-lib=framework=Foundation");
|
|
|
|
if target.contains("-ios") {
|
|
println!("cargo:rustc-link-lib=framework=UIKit");
|
|
} else {
|
|
println!("cargo:rustc-link-lib=framework=AppKit");
|
|
}
|
|
|
|
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");
|
|
}
|