File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " ffmpeg-sys-next"
3- version = " 7.1.1 "
3+ version = " 7.1.2 "
44build = " build.rs"
55links = " ffmpeg"
66
Original file line number Diff line number Diff line change @@ -648,6 +648,20 @@ fn build(sysroot: Option<&str>) -> io::Result<()> {
648648 }
649649
650650 enable ! ( configure, "BUILD_VULKAN" , "vulkan" ) ;
651+ if env:: var ( "CARGO_FEATURE_BUILD_VULKAN" ) . is_ok ( ) {
652+ match env:: var_os ( "FFMPEG_VULKAN_SDK_INCLUDE" ) {
653+ Some ( path) => {
654+ let mut flags = OsString :: from ( "--extra-cflags=-I" ) ;
655+ flags. push ( path) ;
656+ configure. arg ( flags) ;
657+ }
658+ None => {
659+ eprintln ! ( "Warning: missing environment variable FFMPEG_VULKAN_SDK_INCLUDE, compilation may fail" ) ;
660+ eprintln ! ( "FFMPEG_VULKAN_SDK_INCLUDE should be a path to vulkan SDK (>= 1.3.277) include folder" ) ;
661+ eprintln ! ( "Please do not include space in path" ) ;
662+ }
663+ }
664+ }
651665
652666 // other external libraries
653667 enable ! ( configure, "BUILD_LIB_DRM" , "libdrm" ) ;
You can’t perform that action at this time.
0 commit comments