2018-04-20 10:25:51 +10:00
|
|
|
sysconfdir = get_option('sysconfdir')
|
|
|
|
|
2018-04-03 12:48:13 +10:00
|
|
|
executable(
|
2018-04-03 13:14:37 +10:00
|
|
|
'swaylock', [
|
|
|
|
'main.c',
|
2018-04-04 04:31:30 +10:00
|
|
|
'password.c',
|
|
|
|
'render.c',
|
2018-04-03 13:14:37 +10:00
|
|
|
'seat.c'
|
|
|
|
],
|
2018-04-03 12:48:13 +10:00
|
|
|
include_directories: [sway_inc],
|
|
|
|
dependencies: [
|
|
|
|
cairo,
|
|
|
|
client_protos,
|
|
|
|
gdk_pixbuf,
|
|
|
|
libpam,
|
|
|
|
math,
|
|
|
|
pango,
|
|
|
|
pangocairo,
|
2018-04-03 13:43:19 +10:00
|
|
|
xkbcommon,
|
2018-04-03 12:48:13 +10:00
|
|
|
wayland_client,
|
|
|
|
wlroots,
|
|
|
|
],
|
|
|
|
link_with: [lib_sway_common, lib_sway_client],
|
|
|
|
install: true
|
|
|
|
)
|
2018-04-20 10:25:51 +10:00
|
|
|
|
2018-08-30 17:58:57 +10:00
|
|
|
if is_freebsd
|
|
|
|
install_data(
|
|
|
|
'pam/swaylock.freebsd',
|
|
|
|
install_dir: sysconfdir + '/pam.d/',
|
|
|
|
rename: 'swaylock'
|
|
|
|
)
|
|
|
|
else
|
|
|
|
install_data(
|
|
|
|
'pam/swaylock.linux',
|
|
|
|
install_dir: sysconfdir + '/pam.d/',
|
|
|
|
rename: 'swaylock'
|
|
|
|
)
|
|
|
|
endif
|