mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Merge branch 'nls' into 'master'
Meson: Add 'nls' option to disable translation See merge request GNOME/glib!484
This commit is contained in:
10
meson.build
10
meson.build
@@ -1795,8 +1795,6 @@ glib_conf.set('HAVE_DCGETTEXT', 1)
|
|||||||
glib_conf.set('HAVE_GETTEXT', 1)
|
glib_conf.set('HAVE_GETTEXT', 1)
|
||||||
|
|
||||||
glib_conf.set_quoted('GLIB_LOCALE_DIR', join_paths(glib_datadir, 'locale'))
|
glib_conf.set_quoted('GLIB_LOCALE_DIR', join_paths(glib_datadir, 'locale'))
|
||||||
# xgettext is optional (on Windows for instance)
|
|
||||||
xgettext = find_program('xgettext', required : false)
|
|
||||||
|
|
||||||
# libmount is only used by gio, but we need to fetch the libs to generate the
|
# libmount is only used by gio, but we need to fetch the libs to generate the
|
||||||
# pkg-config file below
|
# pkg-config file below
|
||||||
@@ -1981,12 +1979,14 @@ subdir('gobject')
|
|||||||
subdir('gthread')
|
subdir('gthread')
|
||||||
subdir('gmodule')
|
subdir('gmodule')
|
||||||
subdir('gio')
|
subdir('gio')
|
||||||
if xgettext.found()
|
|
||||||
subdir('po')
|
|
||||||
endif
|
|
||||||
subdir('fuzzing')
|
subdir('fuzzing')
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
|
|
||||||
|
# xgettext is optional (on Windows for instance)
|
||||||
|
if find_program('xgettext', required : get_option('nls')).found()
|
||||||
|
subdir('po')
|
||||||
|
endif
|
||||||
|
|
||||||
# Install glib-gettextize executable, if a UNIX-style shell is found
|
# Install glib-gettextize executable, if a UNIX-style shell is found
|
||||||
if have_sh
|
if have_sh
|
||||||
# These should not contain " quotes around the values
|
# These should not contain " quotes around the values
|
||||||
|
@@ -83,3 +83,9 @@ option('installed_tests',
|
|||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
value : false,
|
value : false,
|
||||||
description : 'enable installed tests')
|
description : 'enable installed tests')
|
||||||
|
|
||||||
|
option('nls',
|
||||||
|
type : 'feature',
|
||||||
|
value : 'auto',
|
||||||
|
yield: true,
|
||||||
|
description : 'Enable native language support (translations)')
|
||||||
|
Reference in New Issue
Block a user