opt in and bug fix

This commit is contained in:
Tom Gowan 2018-11-06 12:15:17 +11:00 • committed by mitchmindtree
parent 1f24c76e6a
commit 616974353b
9 changed files with 928 additions and 905 deletions

12
build.rs Normal file
View file

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