cmGlobalVisualStudio11Generator.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2011 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmGlobalVisualStudio11Generator_h
  11. #define cmGlobalVisualStudio11Generator_h
  12. #include "cmGlobalVisualStudio10Generator.h"
  13. /** \class cmGlobalVisualStudio11Generator */
  14. class cmGlobalVisualStudio11Generator:
  15. public cmGlobalVisualStudio10Generator
  16. {
  17. public:
  18. cmGlobalVisualStudio11Generator(cmake* cm, const std::string& name,
  19. const std::string& platformName);
  20. static cmGlobalGeneratorFactory* NewFactory();
  21. virtual bool MatchesGeneratorName(const std::string& name) const;
  22. virtual void WriteSLNHeader(std::ostream& fout);
  23. protected:
  24. virtual bool InitializeWindowsPhone(cmMakefile* mf);
  25. virtual bool InitializeWindowsStore(cmMakefile* mf);
  26. virtual bool SelectWindowsPhoneToolset(std::string& toolset) const;
  27. virtual bool SelectWindowsStoreToolset(std::string& toolset) const;
  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. virtual const char* GetIDEVersion() { return "11.0"; }
  36. bool UseFolderProperty();
  37. static std::set<std::string> GetInstalledWindowsCESDKs();
  38. /** Return true if the configuration needs to be deployed */
  39. virtual bool NeedsDeploy(cmState::TargetType type) const;
  40. private:
  41. class Factory;
  42. friend class Factory;
  43. };
  44. #endif