diff --git a/Cargo.toml b/Cargo.toml index 419c1d0..22eea86 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "coreaudio-sys" -version = "0.2.14" +version = "0.2.15" authors = ["Mitchell Nordine "] description = "Bindings for Apple's CoreAudio frameworks generated via rust-bindgen" license = "MIT" @@ -16,10 +16,11 @@ default-features = false features = ["runtime"] [features] -default = ["audio_toolbox", "audio_unit", "core_audio", "open_al", "core_midi"] +default = ["audio_toolbox", "audio_unit", "core_audio", "audio_server_plugin", "open_al", "core_midi"] audio_toolbox = [] audio_unit = [] core_audio = [] +audio_server_plugin = [] io_kit_audio = [] open_al = [] core_midi = [] diff --git a/build.rs b/build.rs index 7083f9c..f3373cd 100644 --- a/build.rs +++ b/build.rs @@ -83,6 +83,11 @@ fn build(sdk_path: Option<&str>, target: &str) { headers.push("CoreAudio/CoreAudioTypes.h"); } else { headers.push("CoreAudio/CoreAudio.h"); + + #[cfg(feature = "audio_server_plugin")] + { + headers.push("CoreAudio/AudioServerPlugIn.h"); + } } }