The 'msbuild_toolset%' variable can be used to select the desired version of Windows SDK when building in MSBuild (Visual Studio 2010/2010e).

TEST=Built all.sln successfully.


Review URL: http://codereview.chromium.org/9447062

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124274 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/common.gypi b/build/common.gypi
index 821adc9d..f5bc3a5 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -688,6 +688,9 @@
     # Disable Dart by default.
     'enable_dart%': 0,
 
+    # The desired version of Windows SDK can be set in ~/.gyp/include.gypi.
+    'msbuild_toolset%': '',
+
     'conditions': [
       # Used to disable Native Client at compile time, for platforms where it
       # isn't supported (ARM)
@@ -1039,6 +1042,9 @@
       ],
     },
     'conditions': [
+      ['OS=="win" and "<(msbuild_toolset)"!=""', {
+        'msbuild_toolset': '<(msbuild_toolset)',
+      }],
       ['branding=="Chrome"', {
         'defines': ['GOOGLE_CHROME_BUILD'],
       }, {  # else: branding!="Chrome"