[glib-networking] meson: Add missing libintl dep for Windows
- From: Nirbheek Chauhan <nirbheekc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] meson: Add missing libintl dep for Windows
- Date: Wed, 9 May 2018 16:56:57 +0000 (UTC)
commit 3c429ad4eef89604c7405040daaad83f76d224cc
Author: Nirbheek Chauhan <nirbheek centricular com>
Date: Wed May 9 19:53:10 2018 +0530
meson: Add missing libintl dep for Windows
https://bugzilla.gnome.org/show_bug.cgi?id=795982
meson.build | 6 ++++++
tls/gnutls/meson.build | 3 ++-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index 3360b69..c841d67 100644
--- a/meson.build
+++ b/meson.build
@@ -85,6 +85,12 @@ if enable_pkcs11_support
description: 'Building with PKCS#11 support')
endif
+libintl_dep = cc.find_library('intl', required : false)
+if not libintl_dep.found() and host_machine.system() == 'windows'
+ # Used only when the gettext library is not available (MSVC, not MinGW)
+ libintl_dep = subproject('proxy-libintl').get_variable('intl_dep')
+endif
+
configure_file(
output: 'config.h',
configuration: config_h
diff --git a/tls/gnutls/meson.build b/tls/gnutls/meson.build
index 1699d1b..045cc6d 100644
--- a/tls/gnutls/meson.build
+++ b/tls/gnutls/meson.build
@@ -18,7 +18,8 @@ deps = [
glib_dep,
gmodule_dep,
gobject_dep,
- gnutls_dep
+ gnutls_dep,
+ libintl_dep,
]
if enable_pkcs11_support
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]