File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ fn main() {
671
671
let statik = env:: var ( "CARGO_FEATURE_STATIC" ) . is_ok ( ) ;
672
672
let ffmpeg_major_version: u32 = env ! ( "CARGO_PKG_VERSION_MAJOR" ) . parse ( ) . unwrap ( ) ;
673
673
674
- let include_paths: Vec < PathBuf > = if env:: var ( "CARGO_FEATURE_BUILD" ) . is_ok ( ) {
674
+ let mut include_paths: Vec < PathBuf > = if env:: var ( "CARGO_FEATURE_BUILD" ) . is_ok ( ) {
675
675
println ! (
676
676
"cargo:rustc-link-search=native={}" ,
677
677
search( ) . join( "lib" ) . to_string_lossy( )
@@ -821,6 +821,14 @@ fn main() {
821
821
. include_paths
822
822
} ;
823
823
824
+ include_paths. extend (
825
+ pkg_config:: Config :: new ( )
826
+ . statik ( statik)
827
+ . probe ( "cuda" )
828
+ . unwrap ( )
829
+ . include_paths
830
+ ) ;
831
+
824
832
if statik && cfg ! ( target_os = "macos" ) {
825
833
let frameworks = vec ! [
826
834
"AppKit" ,
@@ -1315,6 +1323,7 @@ fn main() {
1315
1323
. header ( search_include ( & include_paths, "libavutil/hash.h" ) )
1316
1324
. header ( search_include ( & include_paths, "libavutil/hmac.h" ) )
1317
1325
. header ( search_include ( & include_paths, "libavutil/hwcontext.h" ) )
1326
+ . header ( search_include ( & include_paths, "libavutil/hwcontext_cuda.h" ) )
1318
1327
. header ( search_include ( & include_paths, "libavutil/imgutils.h" ) )
1319
1328
. header ( search_include ( & include_paths, "libavutil/lfg.h" ) )
1320
1329
. header ( search_include ( & include_paths, "libavutil/log.h" ) )
You can’t perform that action at this time.
0 commit comments