2018-01-07 19:42:33 +00:00
|
|
|
threads = dependency('threads')
|
2018-03-30 21:26:58 +00:00
|
|
|
wayland_cursor = dependency('wayland-cursor')
|
2018-01-07 19:42:33 +00:00
|
|
|
|
2018-06-26 08:14:08 +00:00
|
|
|
# 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)
|
|
|
|
libavformat = dependency('libavformat', version: '>=58.12.100', required: false)
|
2018-05-27 03:03:29 +00:00
|
|
|
|
2018-06-26 05:22:15 +00:00
|
|
|
if not cc.has_header('libavutil/hwcontext_drm.h', dependencies: libavutil)
|
|
|
|
libavutil = disabler()
|
|
|
|
endif
|
|
|
|
|
2018-04-16 22:42:10 +00:00
|
|
|
executable('simple', 'simple.c', dependencies: wlroots)
|
|
|
|
executable('pointer', 'pointer.c', dependencies: wlroots)
|
2018-04-29 21:32:07 +00:00
|
|
|
executable('touch', 'touch.c', 'cat.c', dependencies: wlroots)
|
2018-04-16 22:42:10 +00:00
|
|
|
executable('tablet', 'tablet.c', dependencies: wlroots)
|
2018-04-29 21:32:07 +00:00
|
|
|
executable('rotation', 'rotation.c', 'cat.c', dependencies: wlroots)
|
2018-04-16 22:42:10 +00:00
|
|
|
executable('multi-pointer', 'multi-pointer.c', dependencies: wlroots)
|
2018-04-29 21:32:07 +00:00
|
|
|
executable('output-layout', 'output-layout.c', 'cat.c', dependencies: wlroots)
|
2017-09-08 16:09:09 +00:00
|
|
|
|
|
|
|
executable(
|
|
|
|
'screenshot',
|
|
|
|
'screenshot.c',
|
2018-04-16 22:42:10 +00:00
|
|
|
dependencies: [wayland_client, wlr_protos, wlroots]
|
2017-09-08 16:09:09 +00:00
|
|
|
)
|
2018-01-07 19:42:33 +00:00
|
|
|
|
|
|
|
executable(
|
|
|
|
'idle',
|
|
|
|
'idle.c',
|
2018-04-16 22:42:10 +00:00
|
|
|
dependencies: [wayland_client, wlr_protos, wlroots, threads]
|
2018-01-07 19:42:33 +00:00
|
|
|
)
|
2018-02-17 10:02:00 +00:00
|
|
|
|
|
|
|
executable(
|
|
|
|
'idle-inhibit',
|
|
|
|
'idle-inhibit.c',
|
2018-04-16 22:42:10 +00:00
|
|
|
dependencies: [wayland_client, wlr_protos, wlroots, threads]
|
2018-02-17 10:02:00 +00:00
|
|
|
)
|
2018-03-18 19:09:37 +00:00
|
|
|
|
|
|
|
executable(
|
|
|
|
'layer-shell',
|
|
|
|
'layer-shell.c',
|
2018-03-30 21:26:58 +00:00
|
|
|
dependencies: [wayland_cursor, wayland_client, wlr_protos, wlroots]
|
2018-03-18 19:09:37 +00:00
|
|
|
)
|
2018-04-03 15:29:32 +00:00
|
|
|
|
|
|
|
executable(
|
|
|
|
'input-inhibitor',
|
|
|
|
'input-inhibitor.c',
|
|
|
|
dependencies: [wayland_cursor, wayland_client, wlr_protos, wlroots]
|
|
|
|
)
|
2018-05-27 03:03:29 +00:00
|
|
|
|
2018-05-28 07:24:25 +00:00
|
|
|
if libavutil.found() and libavcodec.found() and libavformat.found()
|
|
|
|
executable(
|
|
|
|
'dmabuf-capture',
|
|
|
|
'dmabuf-capture.c',
|
2018-06-23 01:43:52 +00:00
|
|
|
dependencies: [wayland_client, wlr_protos, libavutil, libavcodec,
|
|
|
|
libavformat, wlroots, threads ]
|
2018-05-28 07:24:25 +00:00
|
|
|
)
|
|
|
|
endif
|