Skip to content

Commit

Permalink
adding CoreAudio back to visionos
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenehp committed Jun 6, 2024
1 parent 51d5696 commit 90edab5
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
}
Expand Down

0 comments on commit 90edab5

Please sign in to comment.