meson: Depends on gusb 0.2.0, but only enable tests on 0.3.0

This commit is contained in:
Marco Trevisan (Treviño) 2020-01-30 15:28:27 +01:00 committed by Benjamin Berg
parent ccd42bdece
commit 82ba69b1df
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ versioned_libname = meson.project_name() + '-' + soversion.to_string()
# Dependencies # Dependencies
glib_dep = dependency('glib-2.0', version: '>=' + glib_min_version) glib_dep = dependency('glib-2.0', version: '>=' + glib_min_version)
gio_dep = dependency('gio-unix-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) mathlib_dep = cc.find_library('m', required: false)
# The following dependencies are only used for tests # The following dependencies are only used for tests

View file

@ -43,7 +43,7 @@ if get_option('introspection')
driver_envs = envs driver_envs = envs
driver_envs.set('FP_DRIVERS_WHITELIST', driver_test) 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, test(driver_test,
find_program('umockdev-test.py'), find_program('umockdev-test.py'),
args: join_paths(meson.current_source_dir(), driver_test), args: join_paths(meson.current_source_dir(), driver_test),