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. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <memory>
  6. #include <string>
  7. #include "cmGlobalVisualStudio11Generator.h"
  8. class cmGlobalGeneratorFactory;
  9. class cmMakefile;
  10. class cmake;
  11. /** \class cmGlobalVisualStudio12Generator */
  12. class cmGlobalVisualStudio12Generator : public cmGlobalVisualStudio11Generator
  13. {
  14. public:
  15. static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory();
  16. bool MatchesGeneratorName(const std::string& name) const override;
  17. protected:
  18. cmGlobalVisualStudio12Generator(cmake* cm, const std::string& name,
  19. std::string const& platformInGeneratorName);
  20. bool ProcessGeneratorToolsetField(std::string const& key,
  21. std::string const& value) override;
  22. bool InitializeWindowsPhone(cmMakefile* mf) override;
  23. bool InitializeWindowsStore(cmMakefile* mf) override;
  24. bool SelectWindowsPhoneToolset(std::string& toolset) const override;
  25. bool SelectWindowsStoreToolset(std::string& toolset) const override;
  26. // Used to verify that the Desktop toolset for the current generator is
  27. // installed on the machine.
  28. bool IsWindowsDesktopToolsetInstalled() const override;
  29. // These aren't virtual because we need to check if the selected version
  30. // of the toolset is installed
  31. bool IsWindowsPhoneToolsetInstalled() const;
  32. bool IsWindowsStoreToolsetInstalled() const;
  33. private:
  34. class Factory;
  35. friend class Factory;
  36. };