aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-02-04 16:02:03 -0500
committerXavier Claessens <xavier.claessens@collabora.com>2021-02-05 17:53:09 -0500
commit522392e7553823e6b3ac38cadc4fbee72eae9540 (patch)
tree0a86dd0524aa3456b6a52443db54f7c5b84102e0 /mesonbuild/modules/gnome.py
parent5d94d161ff0abf72ed7c771ab3bb86e34560762e (diff)
downloadmeson-522392e7553823e6b3ac38cadc4fbee72eae9540.zip
meson-522392e7553823e6b3ac38cadc4fbee72eae9540.tar.gz
meson-522392e7553823e6b3ac38cadc4fbee72eae9540.tar.bz2
run_target: Add env kwarg
Re-implement it in backend using the same code path as for custom_target(). This for example handle setting PATH on Windows when command is an executable.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index f564eb4..48b80e0 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -907,8 +907,8 @@ class GnomeModule(ExtensionModule):
'--id=' + project_id,
'--sources=' + source_str,
]
- pottarget = build.RunTarget('help-' + project_id + '-pot', potargs[0],
- potargs[1:], [], state.subdir, state.subproject)
+ pottarget = build.RunTarget('help-' + project_id + '-pot', potargs,
+ [], state.subdir, state.subproject)
poargs = state.environment.get_build_command() + [
'--internal', 'yelphelper', 'update-po',
@@ -917,8 +917,8 @@ class GnomeModule(ExtensionModule):
'--sources=' + source_str,
'--langs=' + '@@'.join(langs),
]
- potarget = build.RunTarget('help-' + project_id + '-update-po', poargs[0],
- poargs[1:], [], state.subdir, state.subproject)
+ potarget = build.RunTarget('help-' + project_id + '-update-po', poargs,
+ [], state.subdir, state.subproject)
rv = [inscript, pottarget, potarget]
return ModuleReturnValue(None, rv)