meson: Include libav dependency in FFmpeg check
authorScott D Phillips <scott.d.phillips@intel.com>
Thu, 3 Nov 2016 19:43:46 +0000 (12:43 -0700)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 4 Nov 2016 00:55:53 +0000 (21:55 -0300)
The FFmpeg-origin check can't work if it isn't provided the
dependency library.

https://bugzilla.gnome.org/show_bug.cgi?id=773911

meson.build

index ffc2e55..f60ccc4 100644 (file)
@@ -25,7 +25,7 @@ check_ffmpeg_src = '''#include <libavcodec/avcodec.h>
 #error libav provider should be FFmpeg
 #endif'''
 
-if not cc.compiles(check_ffmpeg_src, name : 'libav is provided by FFmpeg')
+if not cc.compiles(check_ffmpeg_src, dependencies : libav_deps, name : 'libav is provided by FFmpeg')
     error('Uncompatible libavcodec found')
 endif