cmGlobalVisualStudio12Generator.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmGlobalVisualStudio12Generator_h
  4. #define cmGlobalVisualStudio12Generator_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <iosfwd>
  7. #include <string>
  8. #include "cmGlobalVisualStudio11Generator.h"
  9. class cmGlobalGeneratorFactory;
  10. class cmMakefile;
  11. class cmake;
  12. /** \class cmGlobalVisualStudio12Generator */
  13. class cmGlobalVisualStudio12Generator : public cmGlobalVisualStudio11Generator
  14. {
  15. public:
  16. cmGlobalVisualStudio12Generator(cmake* cm, const std::string& name,
  17. const std::string& platformName);
  18. static cmGlobalGeneratorFactory* NewFactory();
  19. bool MatchesGeneratorName(const std::string& name) const override;
  20. void WriteSLNHeader(std::ostream& fout) override;
  21. // in Visual Studio 2013 they detached the MSBuild tools version
  22. // from the .Net Framework version and instead made it have it's own
  23. // version number
  24. const char* GetToolsVersion() override { return "12.0"; }
  25. protected:
  26. bool ProcessGeneratorToolsetField(std::string const& key,
  27. std::string const& value) override;
  28. bool InitializeWindowsPhone(cmMakefile* mf) override;
  29. bool InitializeWindowsStore(cmMakefile* mf) override;
  30. bool SelectWindowsPhoneToolset(std::string& toolset) const override;
  31. bool SelectWindowsStoreToolset(std::string& toolset) const override;
  32. // Used to verify that the Desktop toolset for the current generator is
  33. // installed on the machine.
  34. bool IsWindowsDesktopToolsetInstalled() const override;
  35. // These aren't virtual because we need to check if the selected version
  36. // of the toolset is installed
  37. bool IsWindowsPhoneToolsetInstalled() const;
  38. bool IsWindowsStoreToolsetInstalled() const;
  39. const char* GetIDEVersion() override { return "12.0"; }
  40. private:
  41. class Factory;
  42. };
  43. #endif