aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/i18n.py
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2023-08-10 14:35:18 -0400
committerEli Schwartz <eschwartz93@gmail.com>2023-08-18 00:36:49 -0400
commit7cbe37ebd94e9df984328fd9722cc2fc9f61651b (patch)
treebeb5045353c7fc7da5fd7db01e95db3af2073f1c /mesonbuild/modules/i18n.py
parent88747b4f8d4bb35c82c8855ecbd6a29ea419b6fd (diff)
downloadmeson-7cbe37ebd94e9df984328fd9722cc2fc9f61651b.zip
meson-7cbe37ebd94e9df984328fd9722cc2fc9f61651b.tar.gz
meson-7cbe37ebd94e9df984328fd9722cc2fc9f61651b.tar.bz2
Add more descriptive description to CustomTarget
Allow modules using CustomTarget to modify the command description used by ninja backend. This result in more precise logs when building a project.
Diffstat (limited to 'mesonbuild/modules/i18n.py')
-rw-r--r--mesonbuild/modules/i18n.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/modules/i18n.py b/mesonbuild/modules/i18n.py
index 11dd9ef..c82e580 100644
--- a/mesonbuild/modules/i18n.py
+++ b/mesonbuild/modules/i18n.py
@@ -212,6 +212,7 @@ class I18nModule(ExtensionModule):
install=kwargs['install'],
install_dir=[kwargs['install_dir']] if kwargs['install_dir'] is not None else None,
install_tag=install_tag,
+ description='Merging translations for {}',
)
return ModuleReturnValue(ct, [ct])
@@ -304,6 +305,7 @@ class I18nModule(ExtensionModule):
# Bonus: the build tree has something usable as an uninstalled bindtextdomain() target dir.
install_dir=[path.join(install_dir, l, 'LC_MESSAGES')],
install_tag=['i18n'],
+ description='Building translation {}',
)
targets.append(gmotarget)
gmotargets.append(gmotarget)
@@ -390,6 +392,7 @@ class I18nModule(ExtensionModule):
install=kwargs['install'],
install_dir=[kwargs['install_dir']] if kwargs['install_dir'] is not None else None,
install_tag=install_tag,
+ description='Merging translations for {}',
)
return ModuleReturnValue(ct, [ct])