cmGlobalVisualStudio11Generator.h 1.7 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 cmGlobalVisualStudio11Generator_h
  4. #define cmGlobalVisualStudio11Generator_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <iosfwd>
  7. #include <set>
  8. #include <string>
  9. #include "cmGlobalVisualStudio10Generator.h"
  10. #include "cmStateTypes.h"
  11. class cmGlobalGeneratorFactory;
  12. class cmMakefile;
  13. class cmake;
  14. /** \class cmGlobalVisualStudio11Generator */
  15. class cmGlobalVisualStudio11Generator : public cmGlobalVisualStudio10Generator
  16. {
  17. public:
  18. cmGlobalVisualStudio11Generator(cmake* cm, const std::string& name,
  19. const std::string& platformName);
  20. static cmGlobalGeneratorFactory* NewFactory();
  21. bool MatchesGeneratorName(const std::string& name) const override;
  22. protected:
  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. virtual bool IsWindowsDesktopToolsetInstalled() const;
  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. bool UseFolderProperty() const override;
  35. static std::set<std::string> GetInstalledWindowsCESDKs();
  36. /** Return true if the configuration needs to be deployed */
  37. bool NeedsDeploy(cmStateEnums::TargetType type) const override;
  38. private:
  39. class Factory;
  40. friend class Factory;
  41. };
  42. #endif