Skip to content

Commit 4baad39

Browse files
sethdusektilpner
authored andcommitted
Include hwcontex.h and add drm header option
1 parent 5b032ad commit 4baad39

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sys/build.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,8 @@ fn main() {
993993
.header(search_include(&include_paths, "libavutil/timecode.h"))
994994
.header(search_include(&include_paths, "libavutil/twofish.h"))
995995
.header(search_include(&include_paths, "libavutil/avutil.h"))
996-
.header(search_include(&include_paths, "libavutil/xtea.h"));
996+
.header(search_include(&include_paths, "libavutil/xtea.h"))
997+
.header(search_include(&include_paths, "libavutil/hwcontext.h"));
997998

998999
if env::var("CARGO_FEATURE_POSTPROC").is_ok() {
9991000
builder = builder.header(search_include(&include_paths, "libpostproc/postprocess.h"));
@@ -1007,6 +1008,10 @@ fn main() {
10071008
builder = builder.header(search_include(&include_paths, "libswscale/swscale.h"));
10081009
}
10091010

1011+
if env::var("CARGO_FEATURE_LIB_DRM").is_ok() {
1012+
builder = builder.header(search_include(&include_paths, "libavutil/hwcontext_drm.h"))
1013+
}
1014+
10101015
// Finish the builder and generate the bindings.
10111016
let bindings = builder.generate()
10121017
// Unwrap the Result and panic on failure.

0 commit comments

Comments
 (0)