elput: Add elogind as meson option
authorChris Michael <cp.michael@samsung.com>
Thu, 29 Nov 2018 12:11:57 +0000 (07:11 -0500)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 18 Dec 2018 04:15:48 +0000 (13:15 +0900)
meson_options.txt
src/lib/elput/meson.build

index 296b3b8..30eed93 100644 (file)
@@ -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'
+)
index c812ad7..2aa3590 100644 (file)
@@ -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,