examples/screencopy: use libpng

This commit is contained in:
emersion 2018-06-30 23:16:53 +01:00
parent dbb01cbcd0
commit a7a96d7644
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 58 additions and 59 deletions

View file

@ -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