aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-13 10:11:10 -0400
committerGitHub <noreply@github.com>2018-05-13 10:11:10 -0400
commit61aa0937a75d23c0f2a00a8cea52c08bf69164dd (patch)
tree5f2e7817313b657431870862d4059b62bcd2e396 /meson.build
parent0c96d757d0d5d1762390dd119cbe344e8781c19f (diff)
parentf40049b5cd8d0274a62399cbdd1f8fd0e7668be3 (diff)
Merge pull request #1824 from snaggen/idle
DPMS and lock handling
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build16
1 files changed, 16 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index a1f406ec..b943236f 100644
--- a/meson.build
+++ b/meson.build
@@ -20,6 +20,8 @@ datadir = get_option('datadir')
sysconfdir = get_option('sysconfdir')
prefix = get_option('prefix')
+swayidle_deps = []
+
jsonc = dependency('json-c', version: '>=0.13')
pcre = dependency('libpcre')
wlroots = dependency('wlroots', fallback: ['wlroots', 'wlroots'])
@@ -37,6 +39,8 @@ pixman = dependency('pixman-1')
libcap = dependency('libcap')
libinput = dependency('libinput', version: '>=1.6.0')
libpam = cc.find_library('pam')
+systemd = dependency('libsystemd', required: false)
+elogind = dependency('libelogind', required: false)
math = cc.find_library('m')
rt = cc.find_library('rt')
git = find_program('git', required: false)
@@ -47,6 +51,16 @@ if gdk_pixbuf.found()
conf_data.set('HAVE_GDK_PIXBUF', true)
endif
+if systemd.found()
+ conf_data.set('SWAY_IDLE_HAS_SYSTEMD', true)
+ swayidle_deps += systemd
+endif
+
+if elogind.found()
+ conf_data.set('SWAY_IDLE_HAS_ELOGIND', true)
+ swayidle_deps += elogind
+endif
+
scdoc = find_program('scdoc', required: false)
if scdoc.found()
@@ -59,6 +73,7 @@ if scdoc.found()
'sway/sway-input.5.scd',
'swaylock/swaylock.1.scd',
'swaymsg/swaymsg.1.scd',
+ 'swayidle/swayidle.1.scd',
]
foreach filename : man_files
topic = filename.split('.')[-3].split('/')[-1]
@@ -106,6 +121,7 @@ subdir('client')
subdir('swaybg')
subdir('swaybar')
subdir('swaylock')
+subdir('swayidle')
config = configuration_data()
config.set('sysconfdir', join_paths(prefix, sysconfdir))