cmGlobalVisualStudio11Generator.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 "cmGlobalVisualStudio10Generator.h"
  6. /** \class cmGlobalVisualStudio11Generator */
  7. class cmGlobalVisualStudio11Generator : public cmGlobalVisualStudio10Generator
  8. {
  9. public:
  10. cmGlobalVisualStudio11Generator(cmake* cm, const std::string& name,
  11. const std::string& platformName);
  12. static cmGlobalGeneratorFactory* NewFactory();
  13. virtual bool MatchesGeneratorName(const std::string& name) const;
  14. virtual void WriteSLNHeader(std::ostream& fout);
  15. protected:
  16. virtual bool InitializeWindowsPhone(cmMakefile* mf);
  17. virtual bool InitializeWindowsStore(cmMakefile* mf);
  18. virtual bool SelectWindowsPhoneToolset(std::string& toolset) const;
  19. virtual bool SelectWindowsStoreToolset(std::string& toolset) const;
  20. // Used to verify that the Desktop toolset for the current generator is
  21. // installed on the machine.
  22. virtual bool IsWindowsDesktopToolsetInstalled() const;
  23. // These aren't virtual because we need to check if the selected version
  24. // of the toolset is installed
  25. bool IsWindowsPhoneToolsetInstalled() const;
  26. bool IsWindowsStoreToolsetInstalled() const;
  27. virtual const char* GetIDEVersion() { return "11.0"; }
  28. bool UseFolderProperty();
  29. static std::set<std::string> GetInstalledWindowsCESDKs();
  30. /** Return true if the configuration needs to be deployed */
  31. virtual bool NeedsDeploy(cmStateEnums::TargetType type) const;
  32. private:
  33. class Factory;
  34. friend class Factory;
  35. };
  36. #endif