diff --git a/build.rs b/build.rs index 314d128..f9632eb 100644 --- a/build.rs +++ b/build.rs @@ -44,16 +44,16 @@ fn build(sdk_path: Option<&str>, target: &str) { let mut headers: Vec<&'static str> = vec![]; - #[cfg(feature = "audio_toolbox")] + #[cfg(feature = "audio_unit")] { - println!("cargo:rustc-link-lib=framework=AudioToolbox"); - headers.push("AudioToolbox/AudioToolbox.h"); + println!("cargo:rustc-link-lib=framework=AudioUnit"); + headers.push("AudioUnit/AudioUnit.h"); } - #[cfg(feature = "audio_unit")] + #[cfg(feature = "audio_toolbox")] { println!("cargo:rustc-link-lib=framework=AudioToolbox"); - headers.push("AudioUnit/AudioUnit.h"); + headers.push("AudioToolbox/AudioToolbox.h"); } #[cfg(feature = "core_audio")]