mirror of
https://github.com/mpv-player/mpv
synced 2025-03-10 08:13:03 +00:00
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:
parent
6c6aba4359
commit
61b46d101e
11
wscript
11
wscript
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user