mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 18:35:41 +00:00
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:
parent
e1a3bdec08
commit
1283003f2f
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user