wscript: Fix test for ffmpeg drmprime support

This test requires libavutil headers but there is no avutil
dependency for it to use. So let's add one, and also reorder the
ffmpeg tests ahead of the video tests so that the avutil dependency
can be used.
This commit is contained in:
Philip Langdale 2019-09-21 08:54:42 -07:00 committed by Jan Ekström
parent 6c6aba4359
commit 61b46d101e
1 changed files with 9 additions and 2 deletions

11
wscript
View File

@ -448,6 +448,12 @@ libav_dependencies = [
'func': check_pkg_config('libavcodec'),
'req': True,
'fmsg': "FFmpeg/Libav development files not found.",
}, {
'name': 'libavutil',
'desc': 'FFmpeg/Libav libavutil present',
'func': check_pkg_config('libavutil'),
'req': True,
'fmsg': "FFmpeg/Libav libavutil not found.",
}, {
'name': 'ffmpeg',
'desc': 'libav* is FFmpeg',
@ -558,7 +564,8 @@ video_output_features = [
'name': '--drmprime',
'desc': 'DRM Prime ffmpeg support',
'func': check_statement('libavutil/pixfmt.h',
'int i = AV_PIX_FMT_DRM_PRIME')
'int i = AV_PIX_FMT_DRM_PRIME',
use='libavutil')
}, {
'name': '--gbm',
'desc': 'GBM',
@ -1009,9 +1016,9 @@ def configure(ctx):
ctx.parse_dependencies(build_options)
ctx.parse_dependencies(main_dependencies)
ctx.parse_dependencies(libav_dependencies)
ctx.parse_dependencies(audio_output_features)
ctx.parse_dependencies(video_output_features)
ctx.parse_dependencies(libav_dependencies)
ctx.parse_dependencies(hwaccel_features)
if ctx.options.LUA_VER: