Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Jun 20, 2024
1 parent 7dcda15 commit d46d885
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,9 @@ fn main() {
#[cfg(feature = "hardsubx_ocr")]
allowlist_types.extend_from_slice(&["AVRational", "AVPacket", "AVFrame"]);

// std::env::set_var("PKG_CONFIG_ALLOW_SYSTEM_CFLAGS", "1");
let library = pkg_config::probe_library("libavcodec").expect("Unable to probe `libavcodec`");

let mut builder = bindgen::Builder::default()
// The input header we would like to generate
// bindings for.
.clang_args(
library
.include_paths
.iter()
.map(|path| format!("-I{}", path.to_string_lossy())),
)
.header("wrapper.h");

// enable hardsubx if and only if the feature is on
Expand Down

0 comments on commit d46d885

Please sign in to comment.