mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
meson: add 'nls' option to disable translations
And enable by default. Was implicitly disabled because ENABLE_NLS was not defined.
This commit is contained in:
parent
69fcd6391a
commit
b0404761f0
2 changed files with 7 additions and 1 deletions
|
@ -272,6 +272,10 @@ cdata.set_quoted('GETTEXT_PACKAGE', 'gst-plugins-bad-1.0')
|
|||
cdata.set_quoted('GST_API_VERSION', api_version)
|
||||
cdata.set_quoted('GST_LICENSE', 'LGPL')
|
||||
cdata.set_quoted('LIBDIR', join_paths(get_option('prefix'), get_option('libdir')))
|
||||
cdata.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
|
||||
if get_option('nls')
|
||||
cdata.set('ENABLE_NLS', 1)
|
||||
endif
|
||||
|
||||
warning_flags = [
|
||||
'-Wmissing-declarations',
|
||||
|
@ -517,7 +521,7 @@ subdir('pkgconfig')
|
|||
configure_file(output : 'config.h', configuration : cdata)
|
||||
|
||||
# xgettext is optional (on Windows for instance)
|
||||
if find_program('xgettext', required : false).found()
|
||||
if get_option('nls') and find_program('xgettext', required : false).found()
|
||||
subdir('po')
|
||||
endif
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@ option('gst_player_tests', type: 'boolean', value: false,
|
|||
description: 'Enable GstPlayer tests that need network access')
|
||||
|
||||
# Common options
|
||||
option('nls', type : 'boolean', value : true, yield: true,
|
||||
description : 'Enable native language support (translations)')
|
||||
option('orc', type : 'combo', choices : ['yes', 'no', 'auto'], value : 'auto', yield : true)
|
||||
option('introspection', type : 'boolean', value : true, yield : true,
|
||||
description : 'Generate gobject-introspection bindings')
|
||||
|
|
Loading…
Reference in a new issue