[libsoup] build: Add pkcs11_tests option to explicitly enable/disable them



commit 2b511ed96c43be26162b5adb292cc23666dc1c13
Author: Patrick Griffis <pgriffis igalia com>
Date:   Fri Jun 4 10:14:34 2021 -0500

    build: Add pkcs11_tests option to explicitly enable/disable them

 meson.build       | 4 ++--
 meson_options.txt | 6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 4952d513..6c495518 100644
--- a/meson.build
+++ b/meson.build
@@ -309,7 +309,7 @@ if not get_option('http2_tests').disabled()
   endif
 endif
 
-gnutls_dep = dependency('gnutls', required : get_option('tests'))
+gnutls_dep = dependency('gnutls', required : get_option('pkcs11_tests'))
 
 if not have_apache or not quart_found or not have_autobahn or not gnutls_dep.found()
   warning('Some regression tests will not be compiled due to missing libraries or modules. Please check the 
logs for more details.')
@@ -440,7 +440,7 @@ summary({
     'Tests requiring Quart' : quart_found,
     'Fuzzing tests' : get_option('fuzzing').enabled(),
     'Autobahn tests' : have_autobahn,
-    'PKCS#11 tests' : gnutls_dep.found(),
+    'PKCS #11 tests' : gnutls_dep.found(),
     'Install tests': get_option('installed_tests'),
     'Unix sockets' : unix_socket_dep.found(),
   },
diff --git a/meson_options.txt b/meson_options.txt
index 50d6a41f..906e5597 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -88,3 +88,9 @@ option('http2_tests',
   value: 'auto',
   description: 'enable HTTP/2 tests depending on quart'
 )
+
+option('pkcs11_tests',
+  type: 'feature',
+  value: 'auto',
+  description: 'enable PKCS #11 tests depending on gnutls'
+)


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