diff options
author | Brian Ashworth <[email protected]> | 2018-05-14 00:28:21 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2018-05-14 00:28:21 -0400 |
commit | 34b864fb1752fde2528db6aa86d53c23412a8f43 (patch) | |
tree | b387f1e1eb8f8fc16faeb4bf24a0ab6e8ba5787c /meson.build | |
parent | 6ff7c5273659061ec4ff2f6c79c69af2d4d165a5 (diff) | |
parent | 270c1ee7e507f1d2960920a7f4f0cc70f4e13d26 (diff) |
Merge branch 'master' into fix-1975
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 16 |
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)) |