| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 | 
							- /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 
-    file Copyright.txt or https://cmake.org/licensing for details.  */
 
- #include "cmVisualStudio10ToolsetOptions.h"
 
- #include "cmAlgorithms.h"
 
- #include "cmIDEFlagTable.h"
 
- #include "cmVisualStudioGeneratorOptions.h"
 
- std::string cmVisualStudio10ToolsetOptions::GetClFlagTableName(
 
-   std::string const& name, std::string const& toolset) const
 
- {
 
-   std::string const useToolset = this->GetToolsetName(name, toolset);
 
-   if (toolset == "v141") {
 
-     return "v141";
 
-   } else if (useToolset == "v140") {
 
-     return "v140";
 
-   } else if (useToolset == "v120") {
 
-     return "v12";
 
-   } else if (useToolset == "v110") {
 
-     return "v11";
 
-   } else if (useToolset == "v100") {
 
-     return "v10";
 
-   } else {
 
-     return "";
 
-   }
 
- }
 
- std::string cmVisualStudio10ToolsetOptions::GetCSharpFlagTableName(
 
-   std::string const& name, std::string const& toolset) const
 
- {
 
-   std::string const useToolset = this->GetToolsetName(name, toolset);
 
-   if ((useToolset == "v141")) {
 
-     return "v141";
 
-   } else if (useToolset == "v140") {
 
-     return "v140";
 
-   } else if (useToolset == "v120") {
 
-     return "v12";
 
-   } else if (useToolset == "v110") {
 
-     return "v11";
 
-   } else if (useToolset == "v100") {
 
-     return "v10";
 
-   } else {
 
-     return "";
 
-   }
 
- }
 
- std::string cmVisualStudio10ToolsetOptions::GetRcFlagTableName(
 
-   std::string const& name, std::string const& toolset) const
 
- {
 
-   std::string const useToolset = this->GetToolsetName(name, toolset);
 
-   if ((useToolset == "v140") || (useToolset == "v141")) {
 
-     return "v14";
 
-   } else if (useToolset == "v120") {
 
-     return "v12";
 
-   } else if (useToolset == "v110") {
 
-     return "v11";
 
-   } else if (useToolset == "v100") {
 
-     return "v10";
 
-   } else {
 
-     return "";
 
-   }
 
- }
 
- std::string cmVisualStudio10ToolsetOptions::GetLibFlagTableName(
 
-   std::string const& name, std::string const& toolset) const
 
- {
 
-   std::string const useToolset = this->GetToolsetName(name, toolset);
 
-   if ((useToolset == "v140") || (useToolset == "v141")) {
 
-     return "v14";
 
-   } else if (useToolset == "v120") {
 
-     return "v12";
 
-   } else if (useToolset == "v110") {
 
-     return "v11";
 
-   } else if (useToolset == "v100") {
 
-     return "v10";
 
-   } else {
 
-     return "";
 
-   }
 
- }
 
- std::string cmVisualStudio10ToolsetOptions::GetLinkFlagTableName(
 
-   std::string const& name, std::string const& toolset) const
 
- {
 
-   std::string const useToolset = this->GetToolsetName(name, toolset);
 
-   if (useToolset == "v141") {
 
-     return "v141";
 
-   } else if (useToolset == "v140") {
 
-     return "v140";
 
-   } else if (useToolset == "v120") {
 
-     return "v12";
 
-   } else if (useToolset == "v110") {
 
-     return "v11";
 
-   } else if (useToolset == "v100") {
 
-     return "v10";
 
-   } else {
 
-     return "";
 
-   }
 
- }
 
- std::string cmVisualStudio10ToolsetOptions::GetMasmFlagTableName(
 
-   std::string const& name, std::string const& toolset) const
 
- {
 
-   std::string const useToolset = this->GetToolsetName(name, toolset);
 
-   if ((useToolset == "v140") || (useToolset == "v141")) {
 
-     return "v14";
 
-   } else if (useToolset == "v120") {
 
-     return "v12";
 
-   } else if (useToolset == "v110") {
 
-     return "v11";
 
-   } else if (useToolset == "v100") {
 
-     return "v10";
 
-   } else {
 
-     return "";
 
-   }
 
- }
 
- std::string cmVisualStudio10ToolsetOptions::GetToolsetName(
 
-   std::string const& name, std::string const& toolset) const
 
- {
 
-   static_cast<void>(name);
 
-   std::size_t length = toolset.length();
 
-   if (cmHasLiteralSuffix(toolset, "_xp")) {
 
-     length -= 3;
 
-   }
 
-   return toolset.substr(0, length);
 
- }
 
 
  |