[gnome-bluetooth/dont-run-tests-without-introspection] build: Only run tests if introspection is enabled
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/dont-run-tests-without-introspection] build: Only run tests if introspection is enabled
- Date: Thu, 11 Mar 2021 11:20:52 +0000 (UTC)
commit c8e88a9cd2cbb67572f5387a28286a1b3c9a99fb
Author: Felipe Borges <felipeborges gnome org>
Date: Thu Mar 11 12:16:44 2021 +0100
build: Only run tests if introspection is enabled
A build with -Dintrospection=false will fail if tests are ran.
The integration tests added by commit 77b67c702 are written in
Python and require gobject-introspection bindings to be generated.
meson errors out with:
../tests/meson.build:7:0: ERROR: Unknown variable "gnomebt_priv_gir".
meson.build | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 2a1d726f..09ec3cc5 100644
--- a/meson.build
+++ b/meson.build
@@ -114,7 +114,10 @@ if enable_gtk_doc
endif
subdir('po')
-subdir('tests')
+
+if enable_gir
+ subdir('tests')
+endif
configure_file(
output: 'config.h',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]