Mesa (master): meson: check for python2 mako
Dylan Baker
dbaker at kemper.freedesktop.org
Mon Oct 2 16:34:56 UTC 2017
Module: Mesa
Branch: master
Commit: 9342a7d6d64dce331a5efff269b50564c867ba62
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9342a7d6d64dce331a5efff269b50564c867ba62
Author: Dylan Baker <dylan at pnwbakers.com>
Date: Thu Sep 28 10:48:30 2017 -0700
meson: check for python2 mako
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
meson.build | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meson.build b/meson.build
index 02f43eec23..329495ee1b 100644
--- a/meson.build
+++ b/meson.build
@@ -53,6 +53,10 @@ if _vulkan_drivers != ''
endif
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')
if cc.get_id() == 'gcc' and cc.version().version_compare('< 4.4.6')
More information about the mesa-commit
mailing list