mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 16:06:37 +01:00
Make libpam optional
This commit is contained in:
parent
1ef96f7fb7
commit
a8a0014e0f
1 changed files with 5 additions and 2 deletions
|
@ -40,7 +40,7 @@ gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: false)
|
||||||
pixman = dependency('pixman-1')
|
pixman = dependency('pixman-1')
|
||||||
libcap = dependency('libcap', required: false)
|
libcap = dependency('libcap', required: false)
|
||||||
libinput = dependency('libinput', version: '>=1.6.0')
|
libinput = dependency('libinput', version: '>=1.6.0')
|
||||||
libpam = cc.find_library('pam')
|
libpam = cc.find_library('pam', required: false)
|
||||||
systemd = dependency('libsystemd', required: false)
|
systemd = dependency('libsystemd', required: false)
|
||||||
elogind = dependency('libelogind', required: false)
|
elogind = dependency('libelogind', required: false)
|
||||||
math = cc.find_library('m')
|
math = cc.find_library('m')
|
||||||
|
@ -133,10 +133,13 @@ subdir('swaymsg')
|
||||||
subdir('client')
|
subdir('client')
|
||||||
subdir('swaybg')
|
subdir('swaybg')
|
||||||
subdir('swaybar')
|
subdir('swaybar')
|
||||||
subdir('swaylock')
|
|
||||||
subdir('swayidle')
|
subdir('swayidle')
|
||||||
subdir('swaynag')
|
subdir('swaynag')
|
||||||
|
|
||||||
|
if libpam.found()
|
||||||
|
subdir('swaylock')
|
||||||
|
endif
|
||||||
|
|
||||||
config = configuration_data()
|
config = configuration_data()
|
||||||
config.set('sysconfdir', join_paths(prefix, sysconfdir))
|
config.set('sysconfdir', join_paths(prefix, sysconfdir))
|
||||||
config.set('datadir', join_paths(prefix, datadir))
|
config.set('datadir', join_paths(prefix, datadir))
|
||||||
|
|
Loading…
Reference in a new issue