diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-02-12 17:02:19 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-02-21 17:10:04 +0000 |
commit | 68a5b8d9fc34a68bd9f7b8cdb9eb699807fcb2ba (patch) | |
tree | 2e1d5ebd4364148970d4b342c8fb6abb48e14da4 | |
parent | 5ff84e4f50e34bfda5a1f5597d76b767c5c511a0 (diff) | |
download | meson-68a5b8d9fc34a68bd9f7b8cdb9eb699807fcb2ba.zip meson-68a5b8d9fc34a68bd9f7b8cdb9eb699807fcb2ba.tar.gz meson-68a5b8d9fc34a68bd9f7b8cdb9eb699807fcb2ba.tar.bz2 |
Skip test cases/frameworks/7 gnome if prereqs not found
Skip test cases/frameworks/7 gnome if glib or python3-gi not found
-rw-r--r-- | test cases/frameworks/7 gnome/meson.build | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/frameworks/7 gnome/meson.build b/test cases/frameworks/7 gnome/meson.build index 795f458..03335b8 100644 --- a/test cases/frameworks/7 gnome/meson.build +++ b/test cases/frameworks/7 gnome/meson.build @@ -1,5 +1,16 @@ project('gobject-introspection', 'c') +glib = dependency('glib-2.0', required: false) +if not glib.found() + error('MESON_SKIP_TEST glib not found.') +endif + +python3 = import('python3') +py3 = python3.find_python() +if run_command(py3, '-c', 'import gi;').returncode() != 0 + error('MESON_SKIP_TEST python3-gi not found') +endif + cc = meson.get_compiler('c') add_global_arguments('-DMESON_TEST', language : 'c') |