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).
master
Scott Anderson 7 years ago
parent 4852010f29
commit 86942d8a6a

@ -5,6 +5,10 @@ libavutil = dependency('libavutil', required: false)
libavcodec = dependency('libavcodec', required: false) libavcodec = dependency('libavcodec', required: false)
libavformat = dependency('libavformat', 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('simple', 'simple.c', dependencies: wlroots)
executable('pointer', 'pointer.c', dependencies: wlroots) executable('pointer', 'pointer.c', dependencies: wlroots)
executable('touch', 'touch.c', 'cat.c', dependencies: wlroots) executable('touch', 'touch.c', 'cat.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…
Cancel
Save