Skip to content

Commit 205a0a7

Browse files
committed
Add current dir to include directories when compiling resource
Fixes #15206
1 parent f09cd0f commit 205a0a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mesonbuild/modules/windows.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ def compile_resources(self, state: 'ModuleState',
159159

160160
rescomp, rescomp_type = self._find_resource_compiler(state)
161161
if rescomp_type == ResourceCompilerType.rc:
162+
163+
self_dir = build.IncludeDirs(state.subdir, ['.'], False)
164+
if self_dir not in include_directories:
165+
include_directories.append(self_dir)
166+
extra_args += state.get_include_args([self_dir])
167+
162168
# RC is used to generate .res files, a special binary resource
163169
# format, which can be passed directly to LINK (apparently LINK uses
164170
# CVTRES internally to convert this to a COFF object)

0 commit comments

Comments
 (0)