meson: always define HAVE_{X11,XCB}_PLATFORM when it's enabled

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13278>
This commit is contained in:
Eric Engestrom 2021-10-09 12:05:00 +01:00 committed by Marge Bot
parent 448dd106da
commit 5cc9c30aef

View File

@ -916,10 +916,8 @@ endif
gl_pkgconfig_c_flags = []
if with_platform_x11
if with_any_vk or with_egl or (with_glx == 'dri' and with_dri_platform == 'drm')
pre_args += '-DHAVE_X11_PLATFORM'
pre_args += '-DHAVE_XCB_PLATFORM'
endif
pre_args += '-DHAVE_X11_PLATFORM'
pre_args += '-DHAVE_XCB_PLATFORM'
if with_glx == 'xlib' or with_glx == 'gallium-xlib'
pre_args += '-DUSE_XSHM'
else