Check for libavutil/hwcontext_drm.h

This is an optional feature of libavutil, so this will cause a build
failure if it's not present (e.g. on Debian/Ubuntu).
This commit is contained in:
Scott Anderson 2018-06-26 17:22:15 +12:00
parent 4852010f29
commit 86942d8a6a
2 changed files with 5 additions and 1 deletions

View file

@ -5,6 +5,10 @@ libavutil = dependency('libavutil', required: false)
libavcodec = dependency('libavcodec', required: false)
libavformat = dependency('libavformat', required: false)
if not cc.has_header('libavutil/hwcontext_drm.h', dependencies: libavutil)
libavutil = disabler()
endif
executable('simple', 'simple.c', dependencies: wlroots)
executable('pointer', 'pointer.c', dependencies: wlroots)
executable('touch', 'touch.c', 'cat.c', dependencies: wlroots)