summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-11-29 07:11:57 -0500
committerChris Michael <cp.michael@samsung.com>2018-11-29 07:13:16 -0500
commit422960b0e6206132e2e42d95eba4abafb827fd69 (patch)
tree5ee7379b742d4167c5318cc32841e4f94ee3b89c
parentd842aed3132eb298b5ecf76d41d1517bce309801 (diff)
elput: Add elogind as meson option
Diffstat (limited to '')
-rw-r--r--meson_options.txt6
-rw-r--r--src/lib/elput/meson.build3
2 files changed, 9 insertions, 0 deletions
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',
333 value: true, 333 value: true,
334 description: 'Flag for enabling architecture native optimizations' 334 description: 'Flag for enabling architecture native optimizations'
335) 335)
336
337option('elogind',
338 type : 'boolean',
339 value : false,
340 description : 'use elogind support'
341)
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')
22if get_option('systemd') 22if get_option('systemd')
23 elput_deps += systemd 23 elput_deps += systemd
24endif 24endif
25if get_option('elogind')
26 elput_deps += dependency('libelogind')
27endif
25 28
26elput_lib = library('elput', 29elput_lib = library('elput',
27 elput_src, pub_eo_file_target, 30 elput_src, pub_eo_file_target,