aboutsummaryrefslogtreecommitdiff
path: root/backend/session/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'backend/session/meson.build')
-rw-r--r--backend/session/meson.build53
1 files changed, 0 insertions, 53 deletions
diff --git a/backend/session/meson.build b/backend/session/meson.build
index e25d0792..016d0fbb 100644
--- a/backend/session/meson.build
+++ b/backend/session/meson.build
@@ -10,59 +10,6 @@ else
wlr_files += files('direct.c')
endif
-# logind
-
-msg = []
-if get_option('logind').enabled()
- msg += 'Install "lib@0@" or pass "-Dlogind=disabled".'
-endif
-if not get_option('logind').disabled()
- msg += 'Required for logind support.'
- msg += 'You may need to pass "-Dlogind-provider=elogind" or "-Dlogind-provider=systemd" to ensure the correct library is detected.'
-endif
-
-logind_version = '>=237'
-logind_found = false
-
-if get_option('logind-provider') == 'auto'
- if not get_option('logind').disabled()
- assert(get_option('auto_features').auto(), '-Dlogind-provider must be set to systemd or elogind since auto_features != auto')
- logind = dependency('libsystemd',
- required: get_option('logind'),
- not_found_message: 'libsystemd not found, trying libelogind\n' + '\n'.join(msg),
- version: logind_version,
- )
- if logind.found()
- features += { 'systemd': true }
- else
- logind = dependency('libelogind',
- required: get_option('logind'),
- not_found_message: 'libelogind not found\n' + '\n'.join(msg),
- version: logind_version,
- )
- if logind.found()
- features += { 'elogind': true }
- endif
- endif
- logind_found = logind.found()
- endif
-else
- logind = dependency('lib' + get_option('logind-provider'),
- required: get_option('logind'),
- not_found_message: '\n'.join(msg).format(get_option('logind-provider')),
- version: logind_version,
- )
- if logind.found()
- features += { get_option('logind-provider'): true }
- logind_found = true
- endif
-endif
-
-if logind_found
- wlr_files += files('logind.c')
- wlr_deps += logind
-endif
-
# libseat
libseat = dependency('libseat',