From f5e82d5ed345dbb894ff75591abc4b262b65d0dd Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sat, 8 Oct 2016 16:51:15 -0700 Subject: vo_opengl: hwdec_cuda: Use dynamic loading for cuda functions This change applies the pattern used in ffmpeg to dynamically load cuda, to avoid requiring the CUDA SDK at build time. --- wscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 2b0de8bcd5..f9090bf4ee 100644 --- a/wscript +++ b/wscript @@ -913,9 +913,9 @@ hwaccel_features = [ }, { 'name': '--cuda-hwaccel', 'desc': 'CUDA hwaccel', - 'func': compose_checks( - check_cc(lib="cuda"), - check_headers('libavutil/hwcontext_cuda.h', use='libav')), + 'func': check_statement('libavutil/hwcontext_cuda.h', + 'AVCUDADeviceContextInternal* foo', + use='libav'), }, { 'name': 'sse4-intrinsics', 'desc': 'GCC SSE4 intrinsics for GPU memcpy', -- cgit v1.2.3