cocoanut 0.1.1

A Rust wrapper for Cocoa to develop macOS-specific GUI applications
1
2
3
4
5
6
7
8
9
fn main() {
    // Only link macOS frameworks when building for macOS
    if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
        println!("cargo:rustc-link-lib=framework=AppKit");
        println!("cargo:rustc-link-lib=framework=Foundation");
        println!("cargo:rustc-link-lib=framework=CoreGraphics");
        println!("cargo:rustc-link-lib=framework=CoreFoundation");
    }
}