mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
examples/dmabuf-capture: make building this example optional
This commit is contained in:
parent
2198fd5eed
commit
85b6b4b0c8
1 changed files with 10 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue