examples/dmabuf-capture: make building this example optional

master
emersion 7 years ago
parent 2198fd5eed
commit 85b6b4b0c8
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

@ -1,9 +1,9 @@
threads = dependency('threads') threads = dependency('threads')
wayland_cursor = dependency('wayland-cursor') wayland_cursor = dependency('wayland-cursor')
libavutil = dependency('libavutil') libavutil = dependency('libavutil', required: false)
libavcodec = dependency('libavcodec') libavcodec = dependency('libavcodec', required: false)
libavformat = dependency('libavformat') libavformat = dependency('libavformat', required: false)
executable('simple', 'simple.c', dependencies: wlroots) executable('simple', 'simple.c', dependencies: wlroots)
executable('pointer', 'pointer.c', dependencies: wlroots) executable('pointer', 'pointer.c', dependencies: wlroots)
@ -43,8 +43,10 @@ executable(
dependencies: [wayland_cursor, wayland_client, wlr_protos, wlroots] dependencies: [wayland_cursor, wayland_client, wlr_protos, wlroots]
) )
executable( if libavutil.found() and libavcodec.found() and libavformat.found()
'dmabuf-capture', executable(
'dmabuf-capture.c', 'dmabuf-capture',
dependencies: [wayland_client, wlr_protos, libavutil, libavcodec, libavformat] 'dmabuf-capture.c',
) dependencies: [wayland_client, wlr_protos, libavutil, libavcodec, libavformat]
)
endif

Loading…
Cancel
Save