Chromium Code Reviews| Index: pylib/gyp/msvs_emulation.py |
| diff --git a/pylib/gyp/msvs_emulation.py b/pylib/gyp/msvs_emulation.py |
| index 830b0f6a4193d3a6ec9cf1f44691059504531a58..c68b4ffcb29930efadbb0f34a2dae5d4be60cb1e 100644 |
| --- a/pylib/gyp/msvs_emulation.py |
| +++ b/pylib/gyp/msvs_emulation.py |
| @@ -134,6 +134,11 @@ class MsvsSettings(object): |
| self.vs_version = GetVSVersion(generator_flags) |
| self.dxsdk_dir = _FindDirectXInstallation() |
| + # Try to find an installation location for the Windows DDK by checking |
| + # the WDK_DIR environment variable. Return None if the location was not |
|
scottmg
2012/05/08 20:54:26
Not returning anything, maybe just "... variable,
alexeypa (please no reviews)
2012/05/08 20:58:25
Done.
|
| + # found. |
| + self.wdk_dir = os.environ.get('WDK_DIR') |
| + |
| supported_fields = [ |
| ('msvs_configuration_attributes', dict), |
| ('msvs_settings', dict), |
| @@ -166,6 +171,7 @@ class MsvsSettings(object): |
| # by typical end-user installation of the SDK. If it's not set, we don't |
| # want to leave the unexpanded variable in the path, so simply strip it. |
| replacements['$(DXSDK_DIR)'] = self.dxsdk_dir if self.dxsdk_dir else '' |
| + replacements['$(WDK_DIR)'] = self.wdk_dir if self.wdk_dir else '' |
| return replacements |
| def ConvertVSMacros(self, s, base_to_build=None): |