mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-01 00:59:38 +00:00
12 lines
329 B
Rust
12 lines
329 B
Rust
fn main() {
|
|
if std::env::var("TARGET").unwrap().contains("-apple") {
|
|
println!("cargo:rustc-link-lib=framework=AVFoundation");
|
|
if !std::env::var("CARGO_CFG_TARGET_OS")
|
|
.unwrap()
|
|
.contains("ios")
|
|
{
|
|
println!("cargo:rustc-link-lib=framework=AppKit");
|
|
}
|
|
}
|
|
}
|