2018-04-17 07:54:02 +00:00
|
|
|
threads = dependency('threads')
|
|
|
|
|
2018-11-17 23:33:06 +00:00
|
|
|
swayidle_deps = [
|
|
|
|
client_protos,
|
|
|
|
pixman,
|
|
|
|
wayland_client,
|
|
|
|
wayland_server,
|
|
|
|
wlroots,
|
|
|
|
]
|
|
|
|
|
|
|
|
if systemd.found()
|
|
|
|
swayidle_deps += systemd
|
|
|
|
endif
|
|
|
|
if elogind.found()
|
|
|
|
swayidle_deps += elogind
|
|
|
|
endif
|
|
|
|
|
2018-04-17 07:54:02 +00:00
|
|
|
executable(
|
|
|
|
'swayidle', [
|
|
|
|
'main.c',
|
|
|
|
],
|
|
|
|
include_directories: [sway_inc],
|
2018-11-17 23:33:06 +00:00
|
|
|
dependencies: swayidle_deps,
|
2018-04-17 07:54:02 +00:00
|
|
|
link_with: [lib_sway_common, lib_sway_client],
|
2018-09-30 12:11:24 +00:00
|
|
|
install_rpath : rpathdir,
|
2018-04-17 07:54:02 +00:00
|
|
|
install: true
|
|
|
|
)
|