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>
  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. virtual bool MatchesGeneratorName(const std::string& name) const;
  20. virtual void WriteSLNHeader(std::ostream& fout);
  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. virtual const char* GetToolsVersion() { return "12.0"; }
  25. protected:
  26. bool ProcessGeneratorToolsetField(std::string const& key,
  27. std::string const& value) CM_OVERRIDE;
  28. virtual bool InitializeWindowsPhone(cmMakefile* mf);
  29. virtual bool InitializeWindowsStore(cmMakefile* mf);
  30. virtual bool SelectWindowsPhoneToolset(std::string& toolset) const;
  31. virtual bool SelectWindowsStoreToolset(std::string& toolset) const;
  32. // Used to verify that the Desktop toolset for the current generator is
  33. // installed on the machine.
  34. virtual bool IsWindowsDesktopToolsetInstalled() const;
  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. virtual const char* GetIDEVersion() { return "12.0"; }
  40. private:
  41. class Factory;
  42. };
  43. #endif