trivial: Do not hard-depend on newer GLib versions

This commit is contained in:
Richard Hughes 2021-01-07 19:48:22 +00:00
parent a3c6e8a8bd
commit 92bfc1b6a8

View File

@ -198,23 +198,25 @@ if get_option('tests')
], ],
) )
test('fwupd-self-test', e, timeout: 60) test('fwupd-self-test', e, timeout: 60)
e = executable( if gio.version().version_compare ('>= 2.64.0')
'fwupd-thread-test', e = executable(
sources : [ 'fwupd-thread-test',
'fwupd-thread-test.c' sources : [
], 'fwupd-thread-test.c'
include_directories : [ ],
root_incdir, include_directories : [
], root_incdir,
dependencies : [ ],
libfwupd_deps, dependencies : [
], libfwupd_deps,
link_with : fwupd, ],
c_args : [ link_with : fwupd,
'-DG_LOG_DOMAIN="Fwupd"', c_args : [
], '-DG_LOG_DOMAIN="Fwupd"',
) ],
test('fwupd-thread-test', e, timeout: 60) )
test('fwupd-thread-test', e, timeout: 60)
endif
endif endif
fwupd_incdir = include_directories('.') fwupd_incdir = include_directories('.')