aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/i18n.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-06-24 23:07:57 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-06-24 23:07:57 +0300
commit0733c0f9a1cd7a38e3a8f5c746e50967eeb9c9a5 (patch)
tree41fe7f2443785c8961a2840206b2380b78ca527c /mesonbuild/modules/i18n.py
parent35eb8c7b9a0ef755aa228619dd04f937410743c9 (diff)
downloadmeson-0733c0f9a1cd7a38e3a8f5c746e50967eeb9c9a5.zip
meson-0733c0f9a1cd7a38e3a8f5c746e50967eeb9c9a5.tar.gz
meson-0733c0f9a1cd7a38e3a8f5c746e50967eeb9c9a5.tar.bz2
Changed run_target to take command as kwarg and add depends. This makes it behave the same as custom_target.
Diffstat (limited to 'mesonbuild/modules/i18n.py')
-rw-r--r--mesonbuild/modules/i18n.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/modules/i18n.py b/mesonbuild/modules/i18n.py
index 4b529c7..33874fa 100644
--- a/mesonbuild/modules/i18n.py
+++ b/mesonbuild/modules/i18n.py
@@ -26,9 +26,9 @@ class I18nModule:
raise coredata.MesonException('List of languages empty.')
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)
+ 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)
+ gmotarget = build.RunTarget(packagename + '-gmo', sys.executable, gmoargs, [], state.subdir)
installcmd = [sys.executable,
state.environment.get_build_command(),
'--internal',