[gcab] nls: Add meson option to enable/disable NLS
- From: Marc-André Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcab] nls: Add meson option to enable/disable NLS
- Date: Wed, 13 Feb 2019 16:54:01 +0000 (UTC)
commit 7d7721b67311b11c7897e6e3037881e91dbec46e
Author: Daniel Campello <campello chromium org>
Date: Tue Feb 12 11:58:59 2019 -0700
nls: Add meson option to enable/disable NLS
New meson option to enable/disable Native Language Support.
See https://packages.gentoo.org/useflags/nls for motivation.
meson.build | 5 ++++-
meson_options.txt | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 9f6675e..d48cf5f 100644
--- a/meson.build
+++ b/meson.build
@@ -118,9 +118,12 @@ configure_file(
)
subdir('libgcab')
-subdir('po')
subdir('src')
+if get_option('nls')
+subdir('po')
+endif
+
if get_option('docs')
subdir('docs')
endif
diff --git a/meson_options.txt b/meson_options.txt
index b7ade3f..8aecd20 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,4 +1,5 @@
option('docs', type : 'boolean', value : true, description : 'enable developer documentation')
option('introspection', type : 'boolean', value : true, description : 'generate GObject Introspection data')
+option('nls', type : 'boolean', value : true, description : 'enable native language support')
option('vapi', type : 'boolean', value : true, description: 'generate Vala bindings (requires
introspection)')
option('tests', type : 'boolean', value : true, description : 'enable tests')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]