aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/windows.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2021-12-16 22:56:02 +0100
committerEli Schwartz <eschwartz93@gmail.com>2021-12-17 14:00:28 -0500
commitc5ce9744b291d1b93c724384154992f440489f08 (patch)
treecb065d6bd5a80f93396d422153bf0dfef9a2fb0a /mesonbuild/modules/windows.py
parent26f188fb3616acf311429593c9c2d36c1fc5a6b3 (diff)
downloadmeson-c5ce9744b291d1b93c724384154992f440489f08.zip
meson-c5ce9744b291d1b93c724384154992f440489f08.tar.gz
meson-c5ce9744b291d1b93c724384154992f440489f08.tar.bz2
Fix mypy errors
Diffstat (limited to 'mesonbuild/modules/windows.py')
-rw-r--r--mesonbuild/modules/windows.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py
index 8285b18..5f7301d 100644
--- a/mesonbuild/modules/windows.py
+++ b/mesonbuild/modules/windows.py
@@ -41,6 +41,14 @@ if T.TYPE_CHECKING:
include_directories: T.List[T.Union[str, build.IncludeDirs]]
args: T.List[str]
+ class RcKwargs(TypedDict):
+ output: str
+ input: T.List[T.Union[mesonlib.FileOrString, build.CustomTargetIndex]]
+ depfile: T.Optional[str]
+ depend_files: T.List[mesonlib.FileOrString]
+ depends: T.List[T.Union[build.BuildTarget, build.CustomTarget]]
+ command: T.List[T.Union[str, ExternalProgram]]
+
class ResourceCompilerType(enum.Enum):
windres = 1
rc = 2
@@ -174,11 +182,13 @@ class WindowsModule(ExtensionModule):
command.append(rescomp)
command.extend(res_args)
- res_kwargs = {
+ res_kwargs: 'RcKwargs' = {
'output': output,
'input': [src],
+ 'depfile': None,
'depend_files': wrc_depend_files,
'depends': wrc_depends,
+ 'command': [],
}
# instruct binutils windres to generate a preprocessor depfile