mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-11 16:55:23 +00:00
meson: add option to disable translation
https://bugzilla.gnome.org/show_bug.cgi?id=797342
This commit is contained in:
parent
955fc5fcce
commit
456f5427db
2 changed files with 28 additions and 17 deletions
|
@ -2,24 +2,33 @@ install_subdir('GstDebugViewer', install_dir: python3.sysconfig_path('purelib'),
|
||||||
exclude_files: ['__init__.py'])
|
exclude_files: ['__init__.py'])
|
||||||
message('Installing in ' + python3.sysconfig_path('purelib'))
|
message('Installing in ' + python3.sysconfig_path('purelib'))
|
||||||
|
|
||||||
# Desktop launcher and description file.
|
if find_program('msgfmt', required : get_option('nls')).found()
|
||||||
desktop_file = i18n.merge_file(
|
# Desktop launcher and description file.
|
||||||
input: 'org.freedesktop.GstDebugViewer.desktop.in',
|
desktop_file = i18n.merge_file(
|
||||||
output: 'org.freedesktop.GstDebugViewer.desktop',
|
input: 'org.freedesktop.GstDebugViewer.desktop.in',
|
||||||
type: 'desktop',
|
output: 'org.freedesktop.GstDebugViewer.desktop',
|
||||||
po_dir: 'po',
|
type: 'desktop',
|
||||||
install: true,
|
po_dir: 'po',
|
||||||
install_dir: join_paths(get_option('datadir'), 'applications'),
|
install: true,
|
||||||
)
|
install_dir: join_paths(get_option('datadir'), 'applications'),
|
||||||
|
)
|
||||||
|
|
||||||
# Appdata file.
|
# Appdata file.
|
||||||
appdata_file = i18n.merge_file(
|
appdata_file = i18n.merge_file(
|
||||||
input: 'org.freedesktop.GstDebugViewer.appdata.xml.in',
|
input: 'org.freedesktop.GstDebugViewer.appdata.xml.in',
|
||||||
output: 'org.freedesktop.GstDebugViewer.appdata.xml',
|
output: 'org.freedesktop.GstDebugViewer.appdata.xml',
|
||||||
po_dir: 'po',
|
po_dir: 'po',
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: join_paths(get_option('datadir'), 'metainfo'),
|
install_dir: join_paths(get_option('datadir'), 'metainfo'),
|
||||||
)
|
)
|
||||||
|
else
|
||||||
|
install_data('org.freedesktop.GstDebugViewer.desktop.in',
|
||||||
|
rename: 'org.freedesktop.GstDebugViewer.desktop',
|
||||||
|
install_dir: join_paths(get_option('datadir'), 'applications'))
|
||||||
|
install_data('org.freedesktop.GstDebugViewer.appdata.xml.in',
|
||||||
|
rename: 'org.freedesktop.GstDebugViewer.appdata.xml',
|
||||||
|
install_dir: join_paths(get_option('datadir'), 'metainfo'))
|
||||||
|
endif
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
cdata.set('LIBDIR', join_paths(get_option('prefix'), get_option('libdir')))
|
cdata.set('LIBDIR', join_paths(get_option('prefix'), get_option('libdir')))
|
||||||
|
|
|
@ -8,3 +8,5 @@ option('introspection', type : 'feature', value : 'auto', yield : true,
|
||||||
description : 'Generate gobject-introspection bindings')
|
description : 'Generate gobject-introspection bindings')
|
||||||
option('tests', type : 'feature', value : 'auto', yield : true,
|
option('tests', type : 'feature', value : 'auto', yield : true,
|
||||||
description : 'Build and enable unit tests')
|
description : 'Build and enable unit tests')
|
||||||
|
option('nls', type : 'feature', value : 'auto', yield: true,
|
||||||
|
description : 'Enable native language support (translations)')
|
||||||
|
|
Loading…
Reference in a new issue