From db0f487e5c2953caf3908847c62273c54706c612 Mon Sep 17 00:00:00 2001 From: Xiaopeng Li Date: Thu, 4 Jan 2024 22:50:12 +0800 Subject: [PATCH] Audio server plugin binding (#93) * server plugin * add audio_server_plugin feature * bump version to 0.2.15 --- Cargo.toml | 5 +++-- build.rs | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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"); + } } }