From 422960b0e6206132e2e42d95eba4abafb827fd69 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 29 Nov 2018 07:11:57 -0500 Subject: [PATCH] elput: Add elogind as meson option --- meson_options.txt | 6 ++++++ src/lib/elput/meson.build | 3 +++ 2 files changed, 9 insertions(+) diff --git a/meson_options.txt b/meson_options.txt index 296b3b88d8..30eed934a4 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -333,3 +333,9 @@ option('native-arch-optimization', value: true, description: 'Flag for enabling architecture native optimizations' ) + +option('elogind', + type : 'boolean', + value : false, + description : 'use elogind support' +) diff --git a/src/lib/elput/meson.build b/src/lib/elput/meson.build index c812ad7759..2aa3590d2b 100644 --- a/src/lib/elput/meson.build +++ b/src/lib/elput/meson.build @@ -22,6 +22,9 @@ elput_deps += dependency('libudev') if get_option('systemd') elput_deps += systemd endif +if get_option('elogind') + elput_deps += dependency('libelogind') +endif elput_lib = library('elput', elput_src, pub_eo_file_target,