diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/meson.build b/meson.build index 8327b763..bb60bc89 100644 --- a/meson.build +++ b/meson.build | |||
@@ -59,30 +59,18 @@ git = find_program('git', required: false) | |||
59 | 59 | ||
60 | conf_data = configuration_data() | 60 | conf_data = configuration_data() |
61 | 61 | ||
62 | conf_data.set10('HAVE_XWAYLAND', get_option('enable-xwayland')) | ||
62 | if get_option('enable-xwayland') | 63 | if get_option('enable-xwayland') |
63 | conf_data.set('HAVE_XWAYLAND', true) | ||
64 | xcb = dependency('xcb') | 64 | xcb = dependency('xcb') |
65 | else | ||
66 | conf_data.set('HAVE_XWAYLAND', false) | ||
67 | endif | ||
68 | |||
69 | if gdk_pixbuf.found() | ||
70 | conf_data.set('HAVE_GDK_PIXBUF', true) | ||
71 | endif | 65 | endif |
72 | 66 | ||
73 | if systemd.found() | 67 | conf_data.set10('HAVE_GDK_PIXBUF', gdk_pixbuf.found()) |
74 | conf_data.set('SWAY_IDLE_HAS_SYSTEMD', true) | 68 | conf_data.set10('HAVE_SYSTEMD', systemd.found()) |
75 | swayidle_deps += systemd | 69 | conf_data.set10('HAVE_ELOGIND', elogind.found()) |
76 | endif | ||
77 | |||
78 | if elogind.found() | ||
79 | conf_data.set('SWAY_IDLE_HAS_ELOGIND', true) | ||
80 | swayidle_deps += elogind | ||
81 | endif | ||
82 | 70 | ||
83 | if not systemd.found() and not elogind.found() | 71 | if not systemd.found() and not elogind.found() |
84 | warning('The sway binary must be setuid when compiled without (e)logind') | 72 | warning('The sway binary must be setuid when compiled without (e)logind') |
85 | warning('You must do this manually post-install: chmod a+s /path/to/sway') | 73 | warning('You must do this manually post-install: chmod a+s /path/to/sway') |
86 | endif | 74 | endif |
87 | 75 | ||
88 | scdoc = find_program('scdoc', required: false) | 76 | scdoc = find_program('scdoc', required: false) |