From 3abb6f1fefadc5e8e84966e07857d248a07a7b29 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Wed, 23 Nov 2016 10:14:32 -0800 Subject: 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. --- waftools/fragments/cuda.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 waftools/fragments/cuda.c (limited to 'waftools') diff --git a/waftools/fragments/cuda.c b/waftools/fragments/cuda.c new file mode 100644 index 0000000000..c63ec2945d --- /dev/null +++ b/waftools/fragments/cuda.c @@ -0,0 +1,12 @@ +#define CUDA_VERSION 7050 + +typedef void * CUcontext; + +#include +#include + +int main(int argc, char *argv[]) { + enum AVHWDeviceType type = AV_HWDEVICE_TYPE_CUDA; + AVCUDADeviceContextInternal *foo; + return 0; +} -- cgit v1.2.3