From aecd0f660fa014eca33a2ef4a796225fcab905b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 18 Jun 2020 10:40:14 +0100 Subject: [PATCH] tests: validate: Add workaround for older meson versions subproject.get_variable() only has fallback since 0.51 Part-of: --- tests/validate/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/validate/meson.build b/tests/validate/meson.build index da1f159d83..b4f47aab66 100644 --- a/tests/validate/meson.build +++ b/tests/validate/meson.build @@ -1,4 +1,5 @@ if gst_dep.type_name() == 'internal' + if meson.version().version_compare('>= 0.51') gst_tester = gst_proj.get_variable('gst_tester', false) if gst_tester == false if get_option('tests').enabled() @@ -6,6 +7,11 @@ if gst_dep.type_name() == 'internal' endif subdir_done() endif + else + # Workaround for meson < 0.51. Remove once we bump the requirement. + # If you hit this, disable tests in gst-plugins-base. + gst_tester = gst_proj.get_variable('gst_tester') + endif else gst_tester = find_program('gst-tester-@0@'.format(api_version), required: get_option('tests')) if not gst_tester.found()