meson: Use dependency version_compare()

We can check the version on an existing dependency, rather than spinning
up pkg-config again just to check the right version.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone
2017-09-20 07:22:13 -07:00
committed by Adam Jackson
parent 86a89dd602
commit d770f92932
2 changed files with 3 additions and 7 deletions

View File

@@ -210,9 +210,6 @@ endif
gbm_dep = dependency('', required:false)
if build_glamor
gbm_dep = dependency('gbm', version: '>= 10.2', required: false)
if gbm_dep.found()
gbm_linear_dep = dependency('gbm', version: '>= 10.6', required: false)
endif
endif
# XXX: Add more sha1 options, because Linux is about choice