OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 namespace NativeClientVSAddIn | 5 namespace NativeClientVSAddIn |
6 { | 6 { |
7 using System; | 7 using System; |
8 using System.Collections.Generic; | 8 using System.Collections.Generic; |
9 using System.Linq; | 9 using System.Linq; |
10 | 10 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 AssertValidPlatform(); | 162 AssertValidPlatform(); |
163 return GetProperty("ConfigurationGeneral", "NaClWebServerPort"); | 163 return GetProperty("ConfigurationGeneral", "NaClWebServerPort"); |
164 } | 164 } |
165 | 165 |
166 protected set | 166 protected set |
167 { | 167 { |
168 } | 168 } |
169 } | 169 } |
170 | 170 |
171 /// <summary> | 171 /// <summary> |
172 /// Gets or sets the full toolchain and platform name. Ex: win_x86_newlib | 172 /// Gets or sets the toolchain name. Ex: newlib. |
173 /// </summary> | 173 /// </summary> |
174 public string PlatformToolset | 174 public string ToolchainName |
175 { | 175 { |
176 get | 176 get |
177 { | 177 { |
178 AssertValidPlatform(); | 178 AssertNaCl(); |
179 return GetProperty("ConfigurationGeneral", "PlatformToolset"); | 179 return GetProperty("ConfigurationGeneral", "ToolchainName"); |
180 } | 180 } |
181 | 181 |
182 protected set | 182 protected set |
183 { | 183 { |
184 } | 184 } |
185 } | 185 } |
186 | 186 |
187 /// <summary> | 187 /// <summary> |
188 /// Gets or sets the path to the NaCl IRT to use during debugging. (NaCl pla
tform only). | 188 /// Gets or sets the path to the NaCl IRT to use during debugging. (NaCl pla
tform only). |
189 /// </summary> | 189 /// </summary> |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 private void AssertValidPlatform() | 388 private void AssertValidPlatform() |
389 { | 389 { |
390 if (ProjectPlatform == ProjectPlatformType.Other) | 390 if (ProjectPlatform == ProjectPlatformType.Other) |
391 { | 391 { |
392 throw new Exception(string.Format( | 392 throw new Exception(string.Format( |
393 "Unsupported platform type: {0} platform", configuration_.Platform.Nam
e)); | 393 "Unsupported platform type: {0} platform", configuration_.Platform.Nam
e)); |
394 } | 394 } |
395 } | 395 } |
396 } | 396 } |
397 } | 397 } |
OLD | NEW |