2015-12-03 18:10:46 +01:00
|
|
|
use std::env;
|
|
|
|
|
|
|
|
fn main() {
|
2018-04-10 17:06:42 +03:00
|
|
|
for (name, _value) in env::vars() {
|
2024-07-20 00:35:19 +02:00
|
|
|
println!("{name}");
|
|
|
|
|
|
|
|
if name.starts_with("DEP_FFMPEG_CHECK_") {
|
|
|
|
println!(
|
|
|
|
r#"cargo:rustc-check-cfg=cfg(feature, values("{}"))"#,
|
|
|
|
name["DEP_FFMPEG_CHECK_".len()..name.len()].to_lowercase()
|
|
|
|
);
|
|
|
|
} else if name.starts_with("DEP_FFMPEG_") {
|
2018-04-10 17:06:42 +03:00
|
|
|
println!(
|
|
|
|
r#"cargo:rustc-cfg=feature="{}""#,
|
|
|
|
name["DEP_FFMPEG_".len()..name.len()].to_lowercase()
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2015-12-03 18:10:46 +01:00
|
|
|
}
|