diff options
author | emersion <contact@emersion.fr> | 2018-05-28 08:24:25 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-05-29 18:47:20 +0100 |
commit | 85b6b4b0c888deba26b2311a9a509d60160e6644 (patch) | |
tree | 708646fc4760afd5b79764e108f4940d7a357086 /examples | |
parent | 2198fd5eeda18fee7aecae5b3aaf8e6a207d372e (diff) |
examples/dmabuf-capture: make building this example optional
Diffstat (limited to 'examples')
-rw-r--r-- | examples/meson.build | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/examples/meson.build b/examples/meson.build index 6a0bc46c..d82bd256 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -1,9 +1,9 @@ threads = dependency('threads') wayland_cursor = dependency('wayland-cursor') -libavutil = dependency('libavutil') -libavcodec = dependency('libavcodec') -libavformat = dependency('libavformat') +libavutil = dependency('libavutil', required: false) +libavcodec = dependency('libavcodec', required: false) +libavformat = dependency('libavformat', required: false) executable('simple', 'simple.c', dependencies: wlroots) executable('pointer', 'pointer.c', dependencies: wlroots) @@ -43,8 +43,10 @@ executable( dependencies: [wayland_cursor, wayland_client, wlr_protos, wlroots] ) -executable( - 'dmabuf-capture', - 'dmabuf-capture.c', - dependencies: [wayland_client, wlr_protos, libavutil, libavcodec, libavformat] -) +if libavutil.found() and libavcodec.found() and libavformat.found() + executable( + 'dmabuf-capture', + 'dmabuf-capture.c', + dependencies: [wayland_client, wlr_protos, libavutil, libavcodec, libavformat] + ) +endif |