mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
meson: Ensure that mako is >= 0.8.0
It's what autotools has required for a long time. v3: - Use distutils.version.StrictVersion instead of comparing strings Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
03ec672213
commit
52194ae4df
10
meson.build
10
meson.build
@ -698,9 +698,15 @@ if with_platform_haiku
|
||||
endif
|
||||
|
||||
prog_python = find_program('python3')
|
||||
has_mako = run_command(prog_python, '-c', 'import mako')
|
||||
has_mako = run_command(
|
||||
prog_python, '-c',
|
||||
'''
|
||||
from distutils.version import StrictVersion
|
||||
import mako
|
||||
assert StrictVersion(mako.__version__) > StrictVersion("0.8.0")
|
||||
''')
|
||||
if has_mako.returncode() != 0
|
||||
error('Python (3.x) mako module required to build mesa.')
|
||||
error('Python (3.x) mako module >= 0.8.0 required to build mesa.')
|
||||
endif
|
||||
|
||||
if cc.get_id() == 'gcc' and cc.version().version_compare('< 4.4.6')
|
||||
|
Loading…
Reference in New Issue
Block a user