cmGlobalVisualStudio12Generator.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 cmGlobalVisualStudio12Generator_h
  11. #define cmGlobalVisualStudio12Generator_h
  12. #include "cmGlobalVisualStudio11Generator.h"
  13. /** \class cmGlobalVisualStudio12Generator */
  14. class cmGlobalVisualStudio12Generator:
  15. public cmGlobalVisualStudio11Generator
  16. {
  17. public:
  18. cmGlobalVisualStudio12Generator(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 12 user macro support. */
  26. virtual std::string GetUserMacrosDirectory() { return ""; }
  27. //in Visual Studio 2013 they detached the MSBuild tools version
  28. //from the .Net Framework version and instead made it have it's own
  29. //version number
  30. virtual const char* GetToolsVersion() { return "12.0"; }
  31. protected:
  32. virtual bool InitializeWindowsPhone(cmMakefile* mf);
  33. virtual bool InitializeWindowsStore(cmMakefile* mf);
  34. virtual std::string SelectWindowsPhoneToolset() const;
  35. virtual std::string SelectWindowsStoreToolset() const;
  36. virtual const char* GetIDEVersion() { return "12.0"; }
  37. private:
  38. class Factory;
  39. };
  40. #endif