dep_xfixes = null_dep
dep_x11_xcb = null_dep
dep_xcb = null_dep
+dep_xcb_keysyms = null_dep
dep_xcb_glx = null_dep
dep_xcb_dri2 = null_dep
dep_xcb_dri3 = null_dep
endif
with_dri3_modifiers = false
+with_xcb_keysyms = false
if with_platform_x11
if with_glx == 'xlib'
dep_x11 = dependency('x11')
(with_gallium_vdpau or with_gallium_va or
with_gallium_omx != 'disabled'))
dep_xcb = dependency('xcb')
+ dep_xcb_keysyms = dependency('xcb-keysyms', required : false)
+ with_xcb_keysyms = dep_xcb_keysyms.found()
+ if with_xcb_keysyms
+ pre_args += '-DXCB_KEYSYMS_AVAILABLE'
+ endif
dep_x11_xcb = dependency('x11-xcb')
if with_dri_platform == 'drm' and not dep_libdrm.found()
error('libdrm required for gallium video statetrackers when using x11')
]
vulkan_wsi_list += '-DVK_USE_PLATFORM_XCB_KHR'
vulkan_wsi_list += '-DVK_USE_PLATFORM_XLIB_KHR'
+ if with_xcb_keysyms
+ vulkan_wsi_deps += dep_xcb_keysyms
+ endif
endif
if with_platform_wayland
vulkan_wsi_deps += dep_wayland_client