cmGlobalVisualStudio12Generator.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. protected:
  21. bool ProcessGeneratorToolsetField(std::string const& key,
  22. std::string const& value) override;
  23. bool InitializeWindowsPhone(cmMakefile* mf) override;
  24. bool InitializeWindowsStore(cmMakefile* mf) override;
  25. bool SelectWindowsPhoneToolset(std::string& toolset) const override;
  26. bool SelectWindowsStoreToolset(std::string& toolset) const override;
  27. // Used to verify that the Desktop toolset for the current generator is
  28. // installed on the machine.
  29. bool IsWindowsDesktopToolsetInstalled() const override;
  30. // These aren't virtual because we need to check if the selected version
  31. // of the toolset is installed
  32. bool IsWindowsPhoneToolsetInstalled() const;
  33. bool IsWindowsStoreToolsetInstalled() const;
  34. private:
  35. class Factory;
  36. };
  37. #endif