From 86942d8a6aca0a56f94e1138088133ccd64701f1 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 26 Jun 2018 17:22:15 +1200 Subject: 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). --- examples/meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/meson.build b/examples/meson.build index 04cbf744..5e5ec60a 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -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) -- cgit v1.2.3