diff options
author | Dylan Baker <[email protected]> | 2018-08-14 10:32:12 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-08-16 13:53:10 -0700 |
commit | c782168751ec6373c28ebb4b4c39a8f3ae06a075 (patch) | |
tree | 9f0f47817cc64d2c023d0cd124b0be727072649a /scons | |
parent | 64e463813079bf73a5373fe39af7bdbd90992a00 (diff) |
scons: Check for mako 0.8.0
v2: - Use distutils to do the version checking
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107565
Acked-by: Eric Engestrom <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'scons')
-rwxr-xr-x | scons/gallium.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index 659da72c1c3..aa7201a9715 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -29,6 +29,7 @@ Frontend-tool for Gallium3D architecture. # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # +from __future__ import print_function import distutils.version import os @@ -677,6 +678,18 @@ def generate(env): env.PkgCheckModules('XF86VIDMODE', ['xxf86vm']) env.PkgCheckModules('DRM', ['libdrm >= 2.4.75']) + if not os.path.exists("src/util/format_srgb.c"): + print("Checking for Python Mako module (>= 0.8.0)... ", end='') + try: + import mako + except ImportError: + print("no") + exit(1) + if distutils.version.StrictVersion(mako.__version__) < distutils.version.StrictVersion('0.8.0'): + print("no") + exit(1) + print("yes") + if env['x11']: env.Append(CPPPATH = env['X11_CPPPATH']) |