[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/02: BUILD: Add gettext to meson
From: |
gnunet |
Subject: |
[gnunet] 01/02: BUILD: Add gettext to meson |
Date: |
Wed, 20 Sep 2023 18:11:59 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 9f10f15847e1c671ba7e9f5ea5a4ba058226b8d9
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Sep 20 16:28:47 2023 +0200
BUILD: Add gettext to meson
---
meson.build | 7 +++++++
po/meson.build | 1 +
2 files changed, 8 insertions(+)
diff --git a/meson.build b/meson.build
index 72d586801..b31f44dcb 100644
--- a/meson.build
+++ b/meson.build
@@ -29,6 +29,13 @@ message('Building on ' + host_machine.system())
# - Go through configure.ac and convert all defines/detections
# - Compile all libs into a single libgnunet
+# Gettext
+i18n = import('i18n')
+
+gettext_package = 'gnunet'
+add_project_arguments('-DGETTEXT_PACKAGE=' + gettext_package, language: 'c')
+subdir('po')
+
# FIXME lots still missing
cdata.set_quoted('PACKAGE_VERSION', '0.21.0')
cdata.set_quoted('GNUNET_DEFAULT_INTERFACE', 'en0')
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 000000000..57d1266b3
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1 @@
+i18n.gettext(gettext_package, preset: 'glib')
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.