Commit 9342a7d6 authored by Dylan Baker's avatar Dylan Baker
Browse files

meson: check for python2 mako


Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: default avatarEric Engestrom <eric.engestrom@imgtec.com>
parent 86a82b6a
...@@ -53,6 +53,10 @@ if _vulkan_drivers != '' ...@@ -53,6 +53,10 @@ if _vulkan_drivers != ''
endif endif
prog_python2 = find_program('python2') prog_python2 = find_program('python2')
has_mako = run_command(prog_python2, '-c', 'import mako')
if has_mako.returncode() != 0
error('Python (2.x) mako module required to build mesa.')
endif
cc = meson.get_compiler('c') cc = meson.get_compiler('c')
if cc.get_id() == 'gcc' and cc.version().version_compare('< 4.4.6') if cc.get_id() == 'gcc' and cc.version().version_compare('< 4.4.6')
......
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