Merge pull request #1089 from ascent12/hwcontext_drm
Check for libavutil/hwcontext_drm.h
This commit is contained in:
commit
159835de24
|
@ -1,9 +1,14 @@
|
||||||
threads = dependency('threads')
|
threads = dependency('threads')
|
||||||
wayland_cursor = dependency('wayland-cursor')
|
wayland_cursor = dependency('wayland-cursor')
|
||||||
|
|
||||||
libavutil = dependency('libavutil', required: false)
|
# These versions correspond to ffmpeg 4.0
|
||||||
libavcodec = dependency('libavcodec', required: false)
|
libavutil = dependency('libavutil', version: '>=56.14.100', required: false)
|
||||||
libavformat = dependency('libavformat', 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('simple', 'simple.c', dependencies: wlroots)
|
||||||
executable('pointer', 'pointer.c', dependencies: wlroots)
|
executable('pointer', 'pointer.c', dependencies: wlroots)
|
||||||
|
|
|
@ -3,7 +3,7 @@ project(
|
||||||
'c',
|
'c',
|
||||||
version: '0.0.1',
|
version: '0.0.1',
|
||||||
license: 'MIT',
|
license: 'MIT',
|
||||||
meson_version: '>=0.43.0',
|
meson_version: '>=0.44.0',
|
||||||
default_options: [
|
default_options: [
|
||||||
'c_std=c11',
|
'c_std=c11',
|
||||||
'warning_level=2',
|
'warning_level=2',
|
||||||
|
|
Loading…
Reference in New Issue