[pygobject/pygobject-3-32] Add Bool option for tests
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-3-32] Add Bool option for tests
- Date: Fri, 19 Apr 2019 18:24:34 +0000 (UTC)
commit 21865e4a10f11f3ca34c138d266760f1e2fd9933
Author: Adam Duskett <Aduskett gmail com>
Date: Fri Mar 15 16:09:17 2019 -0400
Add Bool option for tests
Currently, there is no way to prevent tests from building using meson.
When cross-compiling, building the tests aren't necessary, and would require
gobject-introspection also to be made with tests.
meson.build | 3 +++
meson_options.txt | 1 +
2 files changed, 4 insertions(+)
---
diff --git a/meson.build b/meson.build
index 7e911f20..d27a0053 100644
--- a/meson.build
+++ b/meson.build
@@ -174,4 +174,7 @@ configure_file(input : 'PKG-INFO.in',
subdir('gi')
subdir('pygtkcompat')
+with_tests = get_option('tests')
+if with_tests
subdir('tests')
+endif
diff --git a/meson_options.txt b/meson_options.txt
index 31f3aa39..5dd4cbcd 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,2 +1,3 @@
option('python', type : 'string', value : 'python3')
option('pycairo', type : 'boolean', value : true, description : 'build with pycairo integration')
+option('tests', type : 'boolean', value : true, description : 'build unit tests')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]