aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/windows.py
diff options
context:
space:
mode:
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