Commit 47881a96 authored by George Matsumura's avatar George Matsumura
Browse files

cogl: Add build version requirement



This ensures that build configuration for the cogl backend will fail
if an insufficiently new version of cogl is present, making it easier
to find the root cause of a build failure.
Signed-off-by: George Matsumura's avatarGeorge Matsumura <gmmatsumura01@bvsd.org>
parent c8d82cff
......@@ -400,7 +400,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(glesv3, OpenGLESv3, no, [
dnl ===========================================================================
CAIRO_ENABLE_SURFACE_BACKEND(cogl, Cogl, no, [
cogl_REQUIRES="cogl-2.0-experimental"
cogl_REQUIRES="cogl-2.0-experimental >= 1.17.2"
PKG_CHECK_MODULES(cogl, $cogl_REQUIRES,, [use_cogl="no"])
])
......
......@@ -518,7 +518,10 @@ if feature_conf.get('CAIRO_HAS_GL_SURFACE', 0) == 0 and feature_conf.get('CAIRO_
endif
endif
cogl_dep = dependency('cogl-2.0-experimental', required: get_option('cogl'))
cogl_dep = dependency('cogl-2.0-experimental',
version: '>= 1.17.2',
required: get_option('cogl'),
)
if cogl_dep.found()
deps += [cogl_dep]
......
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