cmGlobalVisualStudio11Generator.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. void WriteSLNHeader(std::ostream& fout) override;
  23. protected:
  24. bool InitializeWindowsPhone(cmMakefile* mf) override;
  25. bool InitializeWindowsStore(cmMakefile* mf) override;
  26. bool SelectWindowsPhoneToolset(std::string& toolset) const override;
  27. bool SelectWindowsStoreToolset(std::string& toolset) const override;
  28. // Used to verify that the Desktop toolset for the current generator is
  29. // installed on the machine.
  30. virtual bool IsWindowsDesktopToolsetInstalled() const;
  31. // These aren't virtual because we need to check if the selected version
  32. // of the toolset is installed
  33. bool IsWindowsPhoneToolsetInstalled() const;
  34. bool IsWindowsStoreToolsetInstalled() const;
  35. const char* GetIDEVersion() override { return "11.0"; }
  36. bool UseFolderProperty();
  37. static std::set<std::string> GetInstalledWindowsCESDKs();
  38. /** Return true if the configuration needs to be deployed */
  39. bool NeedsDeploy(cmStateEnums::TargetType type) const override;
  40. private:
  41. class Factory;
  42. friend class Factory;
  43. };
  44. #endif