From 90edab549990c1fbff98222d91e83ad071400a86 Mon Sep 17 00:00:00 2001 From: Eugene Hauptmann Date: Thu, 6 Jun 2024 15:53:43 -0400 Subject: [PATCH] adding CoreAudio back to visionos --- build.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/build.rs b/build.rs index f89695a..2732902 100644 --- a/build.rs +++ b/build.rs @@ -91,16 +91,14 @@ fn build(sdk_path: Option<&str>, target: &str) { { println!("cargo:rustc-link-lib=framework=CoreAudio"); - if !target.contains("apple-visionos") { - if target.contains("apple-ios") { - headers.push("CoreAudio/CoreAudioTypes.h"); - } else { - headers.push("CoreAudio/CoreAudio.h"); - - #[cfg(feature = "audio_server_plugin")] - { - headers.push("CoreAudio/AudioServerPlugIn.h"); - } + if target.contains("apple-ios") || target.contains("apple-visionos") { + headers.push("CoreAudio/CoreAudioTypes.h"); + } else { + headers.push("CoreAudio/CoreAudio.h"); + + #[cfg(feature = "audio_server_plugin")] + { + headers.push("CoreAudio/AudioServerPlugIn.h"); } } }