summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2016-11-23 10:14:32 -0800
committerwm4 <wm4@nowhere>2016-11-23 20:48:26 +0100
commit3abb6f1fefadc5e8e84966e07857d248a07a7b29 (patch)
treeb7e52c289ea1a230b5d9c5013134e2303bc81624 /wscript
parent755e9fad2985fbaaa0c23243521ab4c90a3ceb7e (diff)
downloadmpv-3abb6f1fefadc5e8e84966e07857d248a07a7b29.tar.bz2
mpv-3abb6f1fefadc5e8e84966e07857d248a07a7b29.tar.xz
wscript: Fix cuda test to actually work when cuda SDK is not present
The test ended up failing if cuda.h wasn't present, even if cuda.h isn't used during the actual build. This test is attempting to establish if the ffmpeg being built against has dynlink_cuda support. While it might theoretically be possible to build against the older normally-linked-cuda version of ffmpeg, it seems more trouble than it's worth.
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 2 insertions, 3 deletions
diff --git a/wscript b/wscript
index 056ac1048d..2fe82e1afc 100644
--- a/wscript
+++ b/wscript
@@ -922,9 +922,8 @@ hwaccel_features = [
}, {
'name': '--cuda-hwaccel',
'desc': 'CUDA hwaccel',
- 'func': check_statement('libavutil/hwcontext_cuda.h',
- 'AVCUDADeviceContextInternal* foo',
- use='libav'),
+ 'func': check_cc(fragment=load_fragment('cuda.c'),
+ use='libav'),
}, {
'name': 'sse4-intrinsics',
'desc': 'GCC SSE4 intrinsics for GPU memcpy',