meson: drop a temp formatting variable
This was only needed in meson < 0.50 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14240>
This commit is contained in:

committed by
Marge Bot

parent
44dba714f5
commit
84b21fea46
@@ -2158,18 +2158,12 @@ subdir('include')
|
|||||||
subdir('bin')
|
subdir('bin')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
|
||||||
# Meson 0.49 and earlier seems to have a bug that fails to evaluate the string-
|
|
||||||
# formatting below unless the first argument is passed as a variable. This has
|
|
||||||
# been fixed in Meson 0.50 and beyond, but we need to keep it like this for now
|
|
||||||
# for backwards compatibility.
|
|
||||||
_with_opengl_string = with_opengl ? 'yes' : 'no'
|
|
||||||
|
|
||||||
lines = ['',
|
lines = ['',
|
||||||
'prefix: ' + get_option('prefix'),
|
'prefix: ' + get_option('prefix'),
|
||||||
'libdir: ' + get_option('libdir'),
|
'libdir: ' + get_option('libdir'),
|
||||||
'includedir: ' + get_option('includedir'),
|
'includedir: ' + get_option('includedir'),
|
||||||
'',
|
'',
|
||||||
'OpenGL: @0@ (ES1: @1@ ES2: @2@)'.format(_with_opengl_string,
|
'OpenGL: @0@ (ES1: @1@ ES2: @2@)'.format(with_opengl ? 'yes' : 'no',
|
||||||
with_gles1 ? 'yes' : 'no',
|
with_gles1 ? 'yes' : 'no',
|
||||||
with_gles2 ? 'yes' : 'no'),
|
with_gles2 ? 'yes' : 'no'),
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user