use std::env::var;
fn main()
{
if var("CARGO_FEATURE_LINK_NONE").is_ok()
{
return;
}
let debug = match var("CARGO_FEATURE_LINK_DEBUG")
{
Err(_) => "",
Ok(_) => "-debug"
};
let static_ = match var("CARGO_FEATURE_LINK_STATIC")
{
Err(_) => "",
Ok(_) => "-static"
};
println!("cargo:rustc-flags=-l allegro_primitives{}{}", static_, debug);
}