mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
examples/screencopy: use libpng
This commit is contained in:
parent
dbb01cbcd0
commit
a7a96d7644
2 changed files with 58 additions and 59 deletions
|
|
@ -1,6 +1,8 @@
|
|||
threads = dependency('threads')
|
||||
wayland_cursor = dependency('wayland-cursor')
|
||||
|
||||
libpng = dependency('libpng', 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)
|
||||
|
|
@ -57,8 +59,10 @@ if libavutil.found() and libavcodec.found() and libavformat.found()
|
|||
)
|
||||
endif
|
||||
|
||||
executable(
|
||||
'screencopy',
|
||||
'screencopy.c',
|
||||
dependencies: [wayland_client, wlr_protos, wlroots]
|
||||
)
|
||||
if libpng.found()
|
||||
executable(
|
||||
'screencopy',
|
||||
'screencopy.c',
|
||||
dependencies: [wayland_client, wlr_protos, wlroots, libpng]
|
||||
)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue