aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/i18n.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-05-25 23:31:57 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-05-26 01:09:37 +0300
commit3b3c05f6b1c88d202b2166dca4b8e2937feebf27 (patch)
tree5672600a5ac6f56b012900325e8e923cfec918fd /mesonbuild/modules/i18n.py
parentd8e08224da6045460879068fd07cc3f6c6d3fc51 (diff)
downloadmeson-3b3c05f6b1c88d202b2166dca4b8e2937feebf27.zip
meson-3b3c05f6b1c88d202b2166dca4b8e2937feebf27.tar.gz
meson-3b3c05f6b1c88d202b2166dca4b8e2937feebf27.tar.bz2
Can pass extra args to xgettext. Closes #554.
Diffstat (limited to 'mesonbuild/modules/i18n.py')
-rw-r--r--mesonbuild/modules/i18n.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/i18n.py b/mesonbuild/modules/i18n.py
index 51668cb..4b529c7 100644
--- a/mesonbuild/modules/i18n.py
+++ b/mesonbuild/modules/i18n.py
@@ -24,7 +24,8 @@ class I18nModule:
languages = mesonlib.stringlistify(kwargs.get('languages', []))
if len(languages) == 0:
raise coredata.MesonException('List of languages empty.')
- potargs = [state.environment.get_build_command(), '--internal', 'gettext', 'pot', packagename]
+ extra_args = mesonlib.stringlistify(kwargs.get('args', []))
+ potargs = [state.environment.get_build_command(), '--internal', 'gettext', 'pot', packagename] + extra_args
pottarget = build.RunTarget(packagename + '-pot', sys.executable, potargs, state.subdir)
gmoargs = [state.environment.get_build_command(), '--internal', 'gettext', 'gen_gmo'] + languages
gmotarget = build.RunTarget(packagename + '-gmo', sys.executable, gmoargs, state.subdir)