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