Link xcb dependency to meson options "enable_xwayland" (#2393)

* Link xcb dependency to meson options "enable_xwayland"

* Link xcb dependency to meson options "enable_xwayland"
This commit is contained in:
Michel Ganguin 2018-08-02 09:36:47 +02:00 committed by emersion
parent fe39129b96
commit d6095588a1
2 changed files with 6 additions and 6 deletions

View file

@ -44,13 +44,13 @@ systemd = dependency('libsystemd', required: false)
elogind = dependency('libelogind', required: false)
math = cc.find_library('m')
rt = cc.find_library('rt')
xcb = dependency('xcb')
git = find_program('git', required: false)
conf_data = configuration_data()
if get_option('enable-xwayland')
conf_data.set('HAVE_XWAYLAND', true)
xcb = dependency('xcb')
else
conf_data.set('HAVE_XWAYLAND', false)
endif