Add elogind support

Resolves SirCmpwn/wlroots#146
This commit is contained in:
dudemanguy 2017-09-22 12:02:55 -05:00
parent e5e6dab7fd
commit 175f89f4ff
6 changed files with 22 additions and 3 deletions

View file

@ -46,6 +46,7 @@ xcb = dependency('xcb')
xcb_composite = dependency('xcb-composite')
libcap = dependency('libcap', required: false)
systemd = dependency('libsystemd', required: false)
elogind = dependency('libelogind', required: false)
math = cc.find_library('m', required: false)
if libcap.found() and get_option('enable_libcap')
@ -56,6 +57,10 @@ if systemd.found() and get_option('enable_systemd')
add_project_arguments('-DHAS_SYSTEMD', language: 'c')
endif
if elogind.found() and get_option('enable_elogind')
add_project_arguments('-DHAS_ELOGIND', language: 'c')
endif
subdir('protocol')
subdir('backend')
subdir('render')