thunderbolt: only build tests if glib >= 2.52

This change should restore building fwupd with the new thunderbolt
plugin on older systems.
This commit is contained in:
Christian Kellner 2017-08-25 14:33:03 +02:00
parent e1a3bdec08
commit 1283003f2f

View File

@ -18,7 +18,8 @@ shared_module('fu_plugin_thunderbolt',
],
)
if get_option('enable-tests') and umockdev.found()
# we use functions from 2.52 in the tests
if get_option('enable-tests') and umockdev.found() and gio.version().version_compare('>= 2.52')
cargs += '-DFU_OFFLINE_DESTDIR="/tmp/fwupd-self-test"'
cargs += '-DPLUGINBUILDDIR="' + meson.current_build_dir() + '"'
testdatadir_src = join_paths(meson.source_root(), 'data', 'tests')