We need xkbcommon >= 0.5

This commit is contained in:
Kovid Goyal 2018-03-30 09:13:45 +05:30
parent caf9a12b34
commit 529bb5c6a0
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -46,6 +46,9 @@ def init_env(env, pkg_config, at_least_version, module='x11'):
ans.sources = sinfo['common']['sources'] + sinfo[module]['sources']
ans.all_headers = [x for x in os.listdir(base) if x.endswith('.h')]
if module in ('x11', 'wayland'):
at_least_version('xkbcommon', 0, 5)
if module == 'x11':
for dep in 'x11 xrandr xinerama xcursor xkbcommon xkbcommon-x11'.split():
ans.cflags.extend(pkg_config(dep, '--cflags-only-I'))