From 82ba69b1df4121a1e3fc400e126d13baf6c14c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 30 Jan 2020 15:28:27 +0100 Subject: [PATCH] meson: Depends on gusb 0.2.0, but only enable tests on 0.3.0 --- meson.build | 2 +- tests/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 1f83e96..303ab5f 100644 --- a/meson.build +++ b/meson.build @@ -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 diff --git a/tests/meson.build b/tests/meson.build index 912b500..99b9bcb 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -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),