diff options
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/meson.build b/meson.build index 32965e2..85dfe00 100644 --- a/meson.build +++ b/meson.build @@ -2,6 +2,7 @@ project( 'swaylock', 'c', license: 'MIT', + meson_version: '>=0.48.0', default_options: [ 'c_std=c11', 'warning_level=2', @@ -37,15 +38,13 @@ wayland_client = dependency('wayland-client') wayland_protos = dependency('wayland-protocols', version: '>=1.14') xkbcommon = dependency('xkbcommon') cairo = dependency('cairo') -pango = dependency('pango') -pangocairo = dependency('pangocairo') -gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: false) -libpam = cc.find_library('pam', required: get_option('pam') == 'enabled') -crypt = cc.find_library('crypt', required: false) +gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: get_option('gdk-pixbuf')) +libpam = cc.find_library('pam', required: get_option('pam')) +crypt = cc.find_library('crypt', required: not libpam.found()) math = cc.find_library('m') git = find_program('git', required: false) -scdoc = find_program('scdoc', required: false) +scdoc = find_program('scdoc', required: get_option('man-pages')) wayland_scanner = find_program('wayland-scanner') version = get_option('swaylock-version') @@ -119,8 +118,6 @@ dependencies = [ client_protos, gdk_pixbuf, math, - pango, - pangocairo, xkbcommon, wayland_client, ] @@ -132,7 +129,6 @@ sources = [ 'log.c', 'loop.c', 'main.c', - 'pango.c', 'password.c', 'pool-buffer.c', 'render.c', @@ -140,16 +136,14 @@ sources = [ 'unicode.c', ] -if libpam.found() and get_option('pam') != 'disabled' +if libpam.found() sources += ['pam.c'] dependencies += [libpam] else warning('The swaylock binary must be setuid when compiled without libpam') warning('You must do this manually post-install: chmod a+s /path/to/swaylock') sources += ['shadow.c'] - if crypt.found() - dependencies += [crypt] - endif + dependencies += [crypt] endif swaylock_inc = include_directories('include') |
