elput: Add elogind as meson option

This commit is contained in:
Chris Michael 2018-11-29 07:11:57 -05:00
parent d842aed313
commit 422960b0e6
2 changed files with 9 additions and 0 deletions

View 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'
)

View 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,