cmGlobalVisualStudio12Generator.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 "cmGlobalVisualStudio11Generator.h"
  6. /** \class cmGlobalVisualStudio12Generator */
  7. class cmGlobalVisualStudio12Generator : public cmGlobalVisualStudio11Generator
  8. {
  9. public:
  10. cmGlobalVisualStudio12Generator(cmake* cm, const std::string& name,
  11. const std::string& platformName);
  12. static cmGlobalGeneratorFactory* NewFactory();
  13. virtual bool MatchesGeneratorName(const std::string& name) const;
  14. virtual void WriteSLNHeader(std::ostream& fout);
  15. // in Visual Studio 2013 they detached the MSBuild tools version
  16. // from the .Net Framework version and instead made it have it's own
  17. // version number
  18. virtual const char* GetToolsVersion() { return "12.0"; }
  19. protected:
  20. virtual bool InitializeWindowsPhone(cmMakefile* mf);
  21. virtual bool InitializeWindowsStore(cmMakefile* mf);
  22. virtual bool SelectWindowsPhoneToolset(std::string& toolset) const;
  23. virtual bool SelectWindowsStoreToolset(std::string& toolset) const;
  24. // Used to verify that the Desktop toolset for the current generator is
  25. // installed on the machine.
  26. virtual bool IsWindowsDesktopToolsetInstalled() const;
  27. // These aren't virtual because we need to check if the selected version
  28. // of the toolset is installed
  29. bool IsWindowsPhoneToolsetInstalled() const;
  30. bool IsWindowsStoreToolsetInstalled() const;
  31. virtual const char* GetIDEVersion() { return "12.0"; }
  32. private:
  33. class Factory;
  34. };
  35. #endif