meson: don't allow glvnd on windows

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Dylan Baker 2018-04-18 13:19:20 -07:00
parent e1e2388f06
commit 3047199931
1 changed files with 3 additions and 1 deletions

View File

@ -418,7 +418,9 @@ endif
with_glvnd = get_option('glvnd')
if with_glvnd
if with_glx == 'xlib' or with_glx == 'gallium-xlib'
if with_platform_windows
error('glvnd cannot be used on Windows')
elif with_glx == 'xlib' or with_glx == 'gallium-xlib'
error('Cannot build glvnd support for GLX that is not DRI based.')
elif with_glx == 'disabled' and not with_egl
error('glvnd requires DRI based GLX and/or EGL')