aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/meson.build11
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/meson.build b/examples/meson.build
index 04cbf744..d8df0bfc 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -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)