mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-29 16:05:59 +01:00
meson: add systemd/elogind backends only if enabled
Right now, we are adding systemd and elogind backends to the build system as soon as their libraries are found on the build system. Instead, we should only add them if the libraries have been found _and_ the user has actually requested them to be included.
This commit is contained in:
parent
91c034d164
commit
41ec686693
1 changed files with 2 additions and 2 deletions
|
@ -33,11 +33,11 @@ else
|
|||
backend_files += files('session/direct.c')
|
||||
endif
|
||||
|
||||
if systemd.found()
|
||||
if systemd.found() and get_option('enable_systemd')
|
||||
backend_files += files('session/logind.c')
|
||||
endif
|
||||
|
||||
if elogind.found()
|
||||
if elogind.found() and get_option('enable_elogind')
|
||||
backend_files += files('session/logind.c')
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue