Files
biroder ce731c58b7 Merge github.com:RustAudio/cpal
An error occurs when compiling `oboe-sys` 0.5.0, so intergating the latest upstream changes seems like the easiest solution to fix the Android build.

The commits replacing `oboe` with `ndk-audio`/`aaudio` weren't merged, as this would increase the minimum supported Android version to 8.0 (API level 26)
2025-04-28 16:30:24 +03:00

15 lines
352 B
Rust

use std::env;
const CPAL_ASIO_DIR: &str = "CPAL_ASIO_DIR";
fn main() {
println!("cargo:rerun-if-env-changed={}", CPAL_ASIO_DIR);
// If ASIO directory isn't set silently return early
// otherwise set the asio config flag
match env::var(CPAL_ASIO_DIR) {
Err(_) => {}
Ok(_) => println!("cargo:rustc-cfg=asio"),
};
}