Commit 60ad006b authored by Eric Engestrom's avatar Eric Engestrom 💤 Committed by Marge Bot
Browse files

meson: move xlib-lease block further down


Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov's avatarEmil Velikov <emil.velikov@collabora.com>
Part-of: <mesa/mesa!3161>
parent 448eb191
......@@ -323,20 +323,6 @@ else
egl_native_platform = 'surfaceless'
endif
_xlib_lease = get_option('xlib-lease')
if _xlib_lease == 'true'
_xlib_lease = 'enabled'
warning('xlib_lease option "true" deprecated, please use "enabled" instead.')
elif _xlib_lease == 'false'
_xlib_lease = 'disabled'
warning('xlib_lease option "false" deprecated, please use "disabled" instead.')
endif
if _xlib_lease == 'auto'
with_xlib_lease = with_platform_x11 and with_platform_drm
else
with_xlib_lease = _xlib_lease == 'enabled'
endif
with_glx = get_option('glx')
if with_glx == 'auto'
if with_dri
......@@ -387,6 +373,20 @@ if with_gbm and not system_has_kms_drm
error('GBM only supports DRM/KMS platforms')
endif
_xlib_lease = get_option('xlib-lease')
if _xlib_lease == 'true'
_xlib_lease = 'enabled'
warning('xlib_lease option "true" deprecated, please use "enabled" instead.')
elif _xlib_lease == 'false'
_xlib_lease = 'disabled'
warning('xlib_lease option "false" deprecated, please use "disabled" instead.')
endif
if _xlib_lease == 'auto'
with_xlib_lease = with_platform_x11 and with_platform_drm
else
with_xlib_lease = _xlib_lease == 'enabled'
endif
_egl = get_option('egl')
if _egl == 'true'
_egl = 'enabled'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment