mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
13 lines
227 B
Rust
13 lines
227 B
Rust
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()
|
|
);
|
|
}
|
|
}
|
|
}
|