mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +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
f9b7e2ab85
commit
ddee82c89f
2 changed files with 7 additions and 1 deletions
|
@ -148,6 +148,10 @@ cdata.set('PACKAGE_VERSION', '"@0@"'.format(gst_version))
|
||||||
cdata.set('GST_LICENSE', '"LGPL"')
|
cdata.set('GST_LICENSE', '"LGPL"')
|
||||||
cdata.set('PACKAGE', '"gst-plugins-good"')
|
cdata.set('PACKAGE', '"gst-plugins-good"')
|
||||||
cdata.set('GETTEXT_PACKAGE', '"gst-plugins-good-1.0"')
|
cdata.set('GETTEXT_PACKAGE', '"gst-plugins-good-1.0"')
|
||||||
|
cdata.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
|
||||||
|
if get_option('nls')
|
||||||
|
cdata.set('ENABLE_NLS', 1)
|
||||||
|
endif
|
||||||
|
|
||||||
warning_flags = [
|
warning_flags = [
|
||||||
'-Wmissing-declarations',
|
'-Wmissing-declarations',
|
||||||
|
@ -371,7 +375,7 @@ subdir('tests')
|
||||||
subdir('pkgconfig')
|
subdir('pkgconfig')
|
||||||
|
|
||||||
# xgettext is optional (on Windows for instance)
|
# 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')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,8 @@ option('libv4l2', type : 'boolean', value : true,
|
||||||
description : 'Use libv4l2 for some obscure format conversions')
|
description : 'Use libv4l2 for some obscure format conversions')
|
||||||
|
|
||||||
# Common options
|
# 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')
|
option('orc', type : 'combo', choices : ['yes', 'no', 'auto'], value : 'auto')
|
||||||
option('package-name', type : 'string', yield : true,
|
option('package-name', type : 'string', yield : true,
|
||||||
description : 'package name to use in plugins')
|
description : 'package name to use in plugins')
|
||||||
|
|
Loading…
Reference in a new issue