Index: pylib/gyp/msvs_emulation.py |
diff --git a/pylib/gyp/msvs_emulation.py b/pylib/gyp/msvs_emulation.py |
index 967c6d98eda79469e40f030b75c5414cd76322ff..c2c2eebf826166ed92eb55117dfa52f26c4525e5 100644 |
--- a/pylib/gyp/msvs_emulation.py |
+++ b/pylib/gyp/msvs_emulation.py |
@@ -366,13 +366,14 @@ class MsvsSettings(object): |
uldi = self._Setting(('VCLinkerTool', 'UseLibraryDependencyInputs'), config) |
return uldi == 'true' |
- def GetRcflags(self, config): |
+ def GetRcflags(self, config, gyp_to_ninja_path): |
"""Returns the flags that need to be added to invocations of the resource |
compiler.""" |
rcflags = [] |
rc = self._GetWrapper(self, self.msvs_settings[config], |
'VCResourceCompilerTool', append=rcflags) |
- rc('AdditionalIncludeDirectories', prefix='/I') |
+ rc('AdditionalIncludeDirectories', map=gyp_to_ninja_path, prefix='/I') |
+ rcflags.append('/I' + gyp_to_ninja_path('.')) |
rc('PreprocessorDefinitions', prefix='/d') |
# /l arg must be in hex without leading '0x' |
rc('Culture', prefix='/l', map=lambda x: hex(int(x))[2:]) |