diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-12-06 13:00:59 -0800 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-01-18 21:58:24 -0500 |
commit | 0dd720a014b2fb70b4899ca23ebe55684b736b77 (patch) | |
tree | 3e241d170ce98761b9cdade853af4be759cccc88 /mesonbuild | |
parent | 68e684d51f1e469e0d9f4b499ffda15146cad98a (diff) | |
download | meson-0dd720a014b2fb70b4899ca23ebe55684b736b77.zip meson-0dd720a014b2fb70b4899ca23ebe55684b736b77.tar.gz meson-0dd720a014b2fb70b4899ca23ebe55684b736b77.tar.bz2 |
modules/gnome: fix _make_typelib_target types
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/modules/gnome.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index efd7150..44f5f07 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -935,7 +935,8 @@ class GnomeModule(ExtensionModule): return GirTarget(girfile, state.subdir, state.subproject, scankwargs) - def _make_typelib_target(self, state: 'ModuleState', typelib_output: str, typelib_cmd: T.List[str], + def _make_typelib_target(self, state: 'ModuleState', typelib_output: str, + typelib_cmd: T.Sequence[T.Union[str, build.Executable, ExternalProgram, build.CustomTarget]], generated_files: T.Sequence[T.Union[str, mesonlib.File, build.CustomTarget, build.CustomTargetIndex, build.GeneratedList]], kwargs: T.Dict[str, T.Any]) -> TypelibTarget: install = kwargs['install_typelib'] @@ -951,7 +952,7 @@ class GnomeModule(ExtensionModule): typelib_kwargs = { 'input': generated_files, 'output': [typelib_output], - 'command': typelib_cmd, + 'command': list(typelib_cmd), 'install': install, 'install_dir': install_dir, 'install_tag': 'typelib', @@ -1150,7 +1151,7 @@ class GnomeModule(ExtensionModule): for incdir in typelib_includes: typelib_cmd += ["--includedir=" + incdir] - typelib_target = self._make_typelib_target(state, typelib_output, typelib_cmd, generated_files, kwargs) + typelib_target = self._make_typelib_target(state, typelib_output, typelib_cmd, generated_files, T.cast(T.Dict[str, T.Any], kwargs)) self._devenv_prepend('GI_TYPELIB_PATH', os.path.join(state.environment.get_build_dir(), state.subdir)) |