Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenehp committed Jun 6, 2024
1 parent d9cf135 commit 149d06c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,16 @@ fn build(sdk_path: Option<&str>, target: &str) {
{
println!("cargo:rustc-link-lib=framework=CoreAudio");

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");
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");
}
}
}
}
Expand Down

0 comments on commit 149d06c

Please sign in to comment.