Merge pull request #1089 from ascent12/hwcontext_drm

Check for libavutil/hwcontext_drm.h
This commit is contained in:
emersion 2018-06-26 10:13:48 +01:00 committed by GitHub
commit 159835de24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -1,9 +1,14 @@
threads = dependency('threads')
wayland_cursor = dependency('wayland-cursor')
libavutil = dependency('libavutil', required: false)
libavcodec = dependency('libavcodec', required: false)
libavformat = dependency('libavformat', required: false)
# These versions correspond to ffmpeg 4.0
libavutil = dependency('libavutil', version: '>=56.14.100', required: false)
libavcodec = dependency('libavcodec', version: '>=58.18.100', required: false)
libavformat = dependency('libavformat', version: '>=58.12.100', 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)

View File

@ -3,7 +3,7 @@ project(
'c',
version: '0.0.1',
license: 'MIT',
meson_version: '>=0.43.0',
meson_version: '>=0.44.0',
default_options: [
'c_std=c11',
'warning_level=2',