|
|
@ -62,27 +62,22 @@ libinput = dependency('libinput', version: '>=1.7.0')
|
|
|
|
xkbcommon = dependency('xkbcommon')
|
|
|
|
xkbcommon = dependency('xkbcommon')
|
|
|
|
udev = dependency('libudev')
|
|
|
|
udev = dependency('libudev')
|
|
|
|
pixman = dependency('pixman-1')
|
|
|
|
pixman = dependency('pixman-1')
|
|
|
|
libcap = dependency('libcap', required: get_option('enable-libcap') == 'true')
|
|
|
|
libcap = dependency('libcap', required: get_option('libcap'))
|
|
|
|
systemd = dependency('libsystemd', required: get_option('enable-systemd') == 'true')
|
|
|
|
logind = dependency('lib' + get_option('logind-provider'), required: get_option('logind'))
|
|
|
|
elogind = dependency('libelogind', required: get_option('enable-elogind') == 'true')
|
|
|
|
|
|
|
|
math = cc.find_library('m', required: false)
|
|
|
|
math = cc.find_library('m', required: false)
|
|
|
|
|
|
|
|
|
|
|
|
exclude_headers = []
|
|
|
|
exclude_headers = []
|
|
|
|
wlr_parts = []
|
|
|
|
wlr_parts = []
|
|
|
|
wlr_deps = []
|
|
|
|
wlr_deps = []
|
|
|
|
|
|
|
|
|
|
|
|
if libcap.found() and get_option('enable-libcap') != 'false'
|
|
|
|
if libcap.found()
|
|
|
|
conf_data.set('WLR_HAS_LIBCAP', true)
|
|
|
|
conf_data.set('WLR_HAS_LIBCAP', true)
|
|
|
|
wlr_deps += libcap
|
|
|
|
wlr_deps += libcap
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if systemd.found() and get_option('enable-systemd') != 'false'
|
|
|
|
if logind.found()
|
|
|
|
conf_data.set('WLR_HAS_SYSTEMD', true)
|
|
|
|
conf_data.set('WLR_HAS_' + get_option('logind-provider').to_upper(), true)
|
|
|
|
wlr_deps += systemd
|
|
|
|
wlr_deps += logind
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if elogind.found() and get_option('enable-elogind') != 'false'
|
|
|
|
|
|
|
|
conf_data.set('WLR_HAS_ELOGIND', true)
|
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if get_option('enable-x11_backend') or get_option('enable-xwayland')
|
|
|
|
if get_option('enable-x11_backend') or get_option('enable-xwayland')
|
|
|
|