mirror of https://github.com/ndarilek/tts-rs.git
Different approach.
This commit is contained in:
parent
6664ca89e3
commit
c9279804b7
4
build.rs
4
build.rs
|
@ -1,4 +1,5 @@
|
||||||
fn main() {
|
fn main() {
|
||||||
|
#[cfg(windows)]
|
||||||
if std::env::var("TARGET").unwrap().contains("windows") {
|
if std::env::var("TARGET").unwrap().contains("windows") {
|
||||||
windows::build!(
|
windows::build!(
|
||||||
windows::foundation::{EventRegistrationToken, IAsyncOperation, TypedEventHandler},
|
windows::foundation::{EventRegistrationToken, IAsyncOperation, TypedEventHandler},
|
||||||
|
@ -7,7 +8,8 @@ fn main() {
|
||||||
windows::media::speech_synthesis::{SpeechSynthesisStream, SpeechSynthesizer, SpeechSynthesizerOptions},
|
windows::media::speech_synthesis::{SpeechSynthesisStream, SpeechSynthesizer, SpeechSynthesizerOptions},
|
||||||
windows::storage::streams::IRandomAccessStream,
|
windows::storage::streams::IRandomAccessStream,
|
||||||
);
|
);
|
||||||
} else if std::env::var("TARGET").unwrap().contains("-apple") {
|
}
|
||||||
|
if std::env::var("TARGET").unwrap().contains("-apple") {
|
||||||
println!("cargo:rustc-link-lib=framework=AVFoundation");
|
println!("cargo:rustc-link-lib=framework=AVFoundation");
|
||||||
if !std::env::var("CARGO_CFG_TARGET_OS")
|
if !std::env::var("CARGO_CFG_TARGET_OS")
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
|
Loading…
Reference in New Issue