cpal/build.rs

13 lines
302 B
Rust
Raw Normal View History

2018-11-06 01:15:17 +00:00
use std::env;
const CPAL_ASIO_DIR: &'static str = "CPAL_ASIO_DIR";
fn main() {
// If ASIO directory isn't set silently return early
2018-11-06 01:15:17 +00:00
// otherwise set the asio config flag
match env::var(CPAL_ASIO_DIR) {
Err(_) => return,
Ok(_) => println!("cargo:rustc-cfg=asio"),
};
}