[gnome-bluetooth/wip/hadess/split-tests: 2/3] build: Add a check for python-dbusmock
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/split-tests: 2/3] build: Add a check for python-dbusmock
- Date: Thu, 20 Jan 2022 12:54:47 +0000 (UTC)
commit 020c56c5220a89093b0f3742568605602f268108
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jan 20 13:53:47 2022 +0100
build: Add a check for python-dbusmock
We'll need it before meson configures itself soon.
meson.build | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/meson.build b/meson.build
index 9a4092b4..6bead6d0 100644
--- a/meson.build
+++ b/meson.build
@@ -115,6 +115,15 @@ if enable_gtk_doc
endif
subdir('po')
+
+python = import('python')
+python3 = python.find_installation('python3')
+has_dbusmock = false
+script = 'import dbusmock'
+if run_command(python3, '-c', script, check: false).returncode() == 0
+ has_dbusmock = true
+endif
+
subdir('tests')
configure_file(
@@ -130,6 +139,7 @@ meson.add_install_script(
summary({'Documentation': enable_gtk_doc,
'Introspection': enable_gir,
+ 'Dbusmock tests': has_dbusmock,
'Send-to': get_option('sendto'),
'Run gtk-update-icon-cache': get_option('icon_update')},
section: 'General')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]