meson: Depends on gusb 0.2.0, but only enable tests on 0.3.0
This commit is contained in:
parent
ccd42bdece
commit
82ba69b1df
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ versioned_libname = meson.project_name() + '-' + soversion.to_string()
|
|||
# Dependencies
|
||||
glib_dep = dependency('glib-2.0', version: '>=' + glib_min_version)
|
||||
gio_dep = dependency('gio-unix-2.0', version: '>=' + glib_min_version)
|
||||
gusb_dep = dependency('gusb', version: '>= 0.3.0')
|
||||
gusb_dep = dependency('gusb', version: '>= 0.2.0')
|
||||
mathlib_dep = cc.find_library('m', required: false)
|
||||
|
||||
# The following dependencies are only used for tests
|
||||
|
|
|
@ -43,7 +43,7 @@ if get_option('introspection')
|
|||
driver_envs = envs
|
||||
driver_envs.set('FP_DRIVERS_WHITELIST', driver_test)
|
||||
|
||||
if driver_test in drivers
|
||||
if driver_test in drivers and gusb_dep.version().version_compare('>= 0.3.0')
|
||||
test(driver_test,
|
||||
find_program('umockdev-test.py'),
|
||||
args: join_paths(meson.current_source_dir(), driver_test),
|
||||
|
|
Loading…
Reference in a new issue