diff options
author | Pekka Paalanen <pq@iki.fi> | 2018-12-31 14:23:59 +0200 |
---|---|---|
committer | Pekka Paalanen <pq@iki.fi> | 2018-12-31 15:16:53 +0200 |
commit | d64649b56b64ff642124b77308c9ce9661d353d4 (patch) | |
tree | c19feb376939163e3d2b00916ab450e161c88cfe /compositor | |
parent | 217a15c1b2bdfb88f80b6edca108251267ee720a (diff) | |
download | weston-d64649b56b64ff642124b77308c9ce9661d353d4.tar.gz |
meson: better errors for systemd-notify deps
Helps people avoid libsystemd if they don't want it.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
Diffstat (limited to 'compositor')
-rw-r--r-- | compositor/meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compositor/meson.build b/compositor/meson.build index 9ef895d2..88bea8d8 100644 --- a/compositor/meson.build +++ b/compositor/meson.build @@ -126,11 +126,16 @@ if get_option('color-management-colord') endif if get_option('systemd') + dep_libsystemd = dependency('libsystemd', required: false) + if not dep_libsystemd.found() + error('systemd-notify requires libsystemd which was not found. Or, you can use \'-Dsystemd=false\'.') + endif + plugin_systemd_notify = shared_library( 'systemd-notify', 'systemd-notify.c', include_directories: include_directories('..', '../shared'), - dependencies: [ dep_libweston, dependency('libsystemd') ], + dependencies: [ dep_libweston, dep_libsystemd ], name_prefix: '', install: true, install_dir: dir_module_weston |