[libsoup/wip/meson] Put tests compilation behind the 'enable-tests' option



commit e5ffbc3be690bfb5f786be413b9fc9117833f1d7
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Nov 14 12:07:30 2017 +0100

    Put tests compilation behind the 'enable-tests' option
    
    In Autotools port it is behind 'enable-installed-tests' option. Also
    default to compiling all the tests by default.

 meson.build       |    5 ++++-
 meson_options.txt |    6 ++++++
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index 0750a2e..80d8e55 100644
--- a/meson.build
+++ b/meson.build
@@ -205,7 +205,10 @@ endif
 
 subdir('libsoup')
 subdir('examples')
-subdir('tests')
+
+if get_option('enable-tests')
+  subdir('tests')
+ endif
 
 if get_option('enable-gtk-doc')
   subdir('docs/reference')
diff --git a/meson_options.txt b/meson_options.txt
index 4a76937..b062706 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -51,3 +51,9 @@ option('enable-gtk-doc',
   value: false,
   description: 'Enable generating the API reference'
 )
+
+option('enable-tests',
+  type: 'boolean',
+  value: true,
+  description: 'Enable unit tests compilation'
+)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]