bliss-rs/build.rs

13 lines
287 B
Rust
Raw Normal View History

2023-03-16 20:35:12 +02:00
use std::env;
fn main() {
for (name, _value) in env::vars() {
if name.starts_with("DEP_FFMPEG_") {
println!(
r#"cargo:rustc-cfg=feature="{}""#,
name["DEP_FFMPEG_".len()..name.len()].to_lowercase()
);
}
}
}