mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +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
eef72d0d85
commit
39e1dd0bbf
2 changed files with 7 additions and 1 deletions
|
@ -112,7 +112,11 @@ core_conf.set('SIZEOF_LONG', cc.sizeof('long'))
|
||||||
core_conf.set('SIZEOF_SHORT', cc.sizeof('short'))
|
core_conf.set('SIZEOF_SHORT', cc.sizeof('short'))
|
||||||
core_conf.set('SIZEOF_VOIDP', cc.sizeof('void*'))
|
core_conf.set('SIZEOF_VOIDP', cc.sizeof('void*'))
|
||||||
|
|
||||||
|
if get_option('nls')
|
||||||
|
core_conf.set('ENABLE_NLS', 1)
|
||||||
|
endif
|
||||||
core_conf.set('GETTEXT_PACKAGE', '"gst-plugins-base-1.0"')
|
core_conf.set('GETTEXT_PACKAGE', '"gst-plugins-base-1.0"')
|
||||||
|
core_conf.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
|
||||||
core_conf.set('PACKAGE', '"gst-plugins-base"')
|
core_conf.set('PACKAGE', '"gst-plugins-base"')
|
||||||
core_conf.set('VERSION', '"@0@"'.format(gst_version))
|
core_conf.set('VERSION', '"@0@"'.format(gst_version))
|
||||||
core_conf.set('PACKAGE_VERSION', '"@0@"'.format(gst_version))
|
core_conf.set('PACKAGE_VERSION', '"@0@"'.format(gst_version))
|
||||||
|
@ -327,7 +331,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
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@ option('gtkdoc', type : 'boolean', value : true, yield : true,
|
||||||
description : 'Build API documentation with gtk-doc')
|
description : 'Build API documentation with gtk-doc')
|
||||||
option('introspection', type : 'boolean', value : true, yield : true,
|
option('introspection', type : 'boolean', value : true, yield : true,
|
||||||
description : 'Generate gobject-introspection bindings')
|
description : 'Generate gobject-introspection bindings')
|
||||||
|
option('nls', type : 'boolean', value : true, yield: true,
|
||||||
|
description : 'Enable native language support (translations)')
|
||||||
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')
|
||||||
option('package-origin', type : 'string', value : 'Unknown package origin', yield : true,
|
option('package-origin', type : 'string', value : 'Unknown package origin', yield : true,
|
||||||
|
|
Loading…
Reference in a new issue