tectonic_mac_core 0.1.3

Exposing macOS framework APIs to the Tectonic Rust code.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Mac core library build script. Links to framework libraries when targeting MacOS.

use tectonic_cfg_support::target_cfg;

fn main() {
    let is_mac_os = target_cfg!(target_os = "macos");

    if is_mac_os {
        println!("cargo:rustc-link-lib=framework=Foundation");
        println!("cargo:rustc-link-lib=framework=CoreFoundation");
        println!("cargo:rustc-link-lib=framework=CoreGraphics");
        println!("cargo:rustc-link-lib=framework=CoreText");
        println!("cargo:rustc-link-lib=framework=AppKit");
    }
}