cmGlobalVisualStudio11Generator.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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(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. ///! create the correct local generator
  24. virtual cmLocalGenerator *CreateLocalGenerator();
  25. /** TODO: VS 11 user macro support. */
  26. virtual std::string GetUserMacrosDirectory() { return ""; }
  27. protected:
  28. virtual bool InitializeWindowsPhone(cmMakefile* mf);
  29. virtual bool InitializeWindowsStore(cmMakefile* mf);
  30. virtual std::string SelectWindowsPhoneToolset() const;
  31. virtual std::string SelectWindowsStoreToolset() const;
  32. virtual const char* GetIDEVersion() { return "11.0"; }
  33. bool UseFolderProperty();
  34. static std::set<std::string> GetInstalledWindowsCESDKs();
  35. /** Return true if the configuration needs to be deployed */
  36. virtual bool NeedsDeploy(cmTarget::TargetType type) const;
  37. private:
  38. class Factory;
  39. friend class Factory;
  40. };
  41. #endif