fix: debian bookworm build
This commit is contained in:
19
build.rs
Normal file
19
build.rs
Normal file
@ -0,0 +1,19 @@
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
// re-export ffmpeg-sys-the-third features
|
||||
// https://github.com/FFmpeg/FFmpeg/blob/master/doc/APIchanges
|
||||
for (name, _value) in env::vars() {
|
||||
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_") {
|
||||
println!(
|
||||
r#"cargo:rustc-cfg=feature="{}""#,
|
||||
name["DEP_FFMPEG_".len()..name.len()].to_lowercase()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user