[libsoup] meson: Define check_gio_tls_src conditionally
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] meson: Define check_gio_tls_src conditionally
- Date: Mon, 16 Apr 2018 05:41:16 +0000 (UTC)
commit 31a332fbc9e4bcf147411ba756d14ff2b4906805
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Fri Apr 13 10:07:35 2018 +0200
meson: Define check_gio_tls_src conditionally
The `check_gio_tls_src` which contains the source code to test if
the backend has TLs support should only be defined if `tls_check`
is enabled.
https://bugzilla.gnome.org/show_bug.cgi?id=795233
meson.build | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index 7b004f3..a95e543 100644
--- a/meson.build
+++ b/meson.build
@@ -84,14 +84,14 @@ libpsl_dep = dependency('libpsl', version : libpsl_required_version)
###################
# GIO TLS support #
###################
-check_gio_tls_src = '''#include <gio/gio.h>
-int main(void) {
- return !g_tls_backend_supports_tls (g_tls_backend_get_default ());
-}
-'''
-
enable_tls_check = get_option('tls_check')
if enable_tls_check
+ check_gio_tls_src = '''#include <gio/gio.h>
+ int main(void) {
+ return !g_tls_backend_supports_tls (g_tls_backend_get_default ());
+ }
+ '''
+
assert(cc.compiles(check_gio_tls_src, name : 'GIO has real TLS support', dependencies : glib_dep),
'libsoup requires glib-networking or glib-openssl for TLS support')
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]