diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2017-08-04 16:16:41 +0300 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2021-12-02 19:33:45 -0500 |
commit | c88bfdbefc2f79ac2dfa9bff5847c350de5f5db8 (patch) | |
tree | ff0bc95b95c5513ecc64a978fb632e003d33f574 /mesonbuild/modules | |
parent | 172fa4d3b2ef1b0f2ef78aba1d97687701ae48b3 (diff) | |
download | meson-c88bfdbefc2f79ac2dfa9bff5847c350de5f5db8.zip meson-c88bfdbefc2f79ac2dfa9bff5847c350de5f5db8.tar.gz meson-c88bfdbefc2f79ac2dfa9bff5847c350de5f5db8.tar.bz2 |
gtkdoc: add support for a binary wrapper
Make it possible to specify a wrapper for executing binaries
in cross-compiling scenarios.
(usually, some kind of target hardware emulator, such as qemu)
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/gnome.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index f7ce1a0..181d728 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -38,7 +38,7 @@ from ..interpreterbase.decorators import typed_pos_args from ..mesonlib import ( MachineChoice, MesonException, OrderedSet, Popen_safe, join_args, ) -from ..programs import ExternalProgram, OverrideProgram +from ..programs import ExternalProgram, OverrideProgram, EmptyExternalProgram if T.TYPE_CHECKING: from typing_extensions import Literal, TypedDict @@ -1177,6 +1177,8 @@ class GnomeModule(ExtensionModule): t_args.append(f'--{program_name}={path}') if namespace: t_args.append('--namespace=' + namespace) + if state.environment.need_exe_wrapper() and not isinstance(state.environment.get_exe_wrapper(), EmptyExternalProgram): + t_args.append('--run=' + ' '.join(state.environment.get_exe_wrapper().get_command())) t_args.append(f'--htmlargs={"@@".join(kwargs["html_args"])}') t_args.append(f'--scanargs={"@@".join(kwargs["scan_args"])}') t_args.append(f'--scanobjsargs={"@@".join(kwargs["scanobjs_args"])}') |