cmGlobalVisualStudio11Generator.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. bool UseFolderProperty() const override;
  36. static std::set<std::string> GetInstalledWindowsCESDKs();
  37. /** Return true if the configuration needs to be deployed */
  38. bool NeedsDeploy(cmStateEnums::TargetType type) const override;
  39. private:
  40. class Factory;
  41. friend class Factory;
  42. };
  43. #endif