From: Nirbheek Chauhan Date: Wed, 5 Sep 2018 11:02:07 +0000 (+0530) Subject: meson: Always use a dependency object for dependencies X-Git-Tag: 1.16.2~278 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbd02b95840f81152796d24ed4a619e115aa0797;p=platform%2Fupstream%2Fgstreamer.git meson: Always use a dependency object for dependencies Fixes a configure error with gst-build: subprojects/gst-plugins-base/meson.build:235:2: ERROR: Fetched variable 'gst_check_dep' in the subproject 'gstreamer' is not a dependency object. --- diff --git a/libs/gst/meson.build b/libs/gst/meson.build index 0313c0a..33ecc2c 100644 --- a/libs/gst/meson.build +++ b/libs/gst/meson.build @@ -4,7 +4,7 @@ subdir('net') subdir('helpers') if get_option('check').disabled() - gst_check_dep = disabler() # KISS for now + gst_check_dep = dependency('', required : false) else subdir('check') endif diff --git a/tests/meson.build b/tests/meson.build index e97724f..324355c 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,7 +1,7 @@ if not get_option('benchmarks').disabled() subdir('benchmarks') endif -if not get_option('tests').disabled() +if not get_option('tests').disabled() and gst_check_dep.found() subdir('check') endif if not get_option('examples').disabled()