diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-04-16 23:08:05 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-02 19:28:35 -0400 |
commit | 6823cabb83c77fa19ebf594acceea7314b9e8fd7 (patch) | |
tree | d4e9bee35020945a7253329f4be4a1252c93b3c9 /mesonbuild/backend/backends.py | |
parent | 7c78c2b5a0314078bdabb998ead56925dc8b0fc0 (diff) | |
download | meson-6823cabb83c77fa19ebf594acceea7314b9e8fd7.zip meson-6823cabb83c77fa19ebf594acceea7314b9e8fd7.tar.gz meson-6823cabb83c77fa19ebf594acceea7314b9e8fd7.tar.bz2 |
extend install scripts to allow specific directory variable exports
This is useful for internal scripts that want to know about something
other than MESON_INSTALL_PREFIX and MESON_INSTALL_DESTDIR_PREFIX, which
is very specific to the prefix.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 4972eab..a13c0ec 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -499,7 +499,8 @@ class Backend: feed: T.Optional[bool] = None, env: T.Optional[build.EnvironmentVariables] = None, tag: T.Optional[str] = None, - verbose: bool = False) -> 'ExecutableSerialisation': + verbose: bool = False, + installdir_map: T.Optional[T.Dict[str, str]] = None) -> 'ExecutableSerialisation': # XXX: cmd_args either need to be lowered to strings, or need to be checked for non-string arguments, right? exe, *raw_cmd_args = cmd @@ -560,7 +561,7 @@ class Backend: workdir = workdir or self.environment.get_build_dir() return ExecutableSerialisation(exe_cmd + cmd_args, env, exe_wrapper, workdir, - extra_paths, capture, feed, tag, verbose) + extra_paths, capture, feed, tag, verbose, installdir_map) def as_meson_exe_cmdline(self, exe: T.Union[str, mesonlib.File, build.BuildTarget, build.CustomTarget, programs.ExternalProgram], cmd_args: T.Sequence[T.Union[str, mesonlib.File, build.BuildTarget, build.CustomTarget, programs.ExternalProgram]], |