summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2016-10-08 16:51:15 -0700
committerwm4 <wm4@nowhere>2016-11-23 01:07:26 +0100
commitf5e82d5ed345dbb894ff75591abc4b262b65d0dd (patch)
tree04cf9d9c47e0a89ddeeccb295f15fe25bed40d4b /wscript
parentebd9ce9fca557eb0e1388c944dc2438442785e95 (diff)
downloadmpv-f5e82d5ed345dbb894ff75591abc4b262b65d0dd.tar.bz2
mpv-f5e82d5ed345dbb894ff75591abc4b262b65d0dd.tar.xz
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.
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 3 insertions, 3 deletions
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',