cmGlobalVisualStudio12Generator.h 1.9 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(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. //in Visual Studio 2013 they detached the MSBuild tools version
  24. //from the .Net Framework version and instead made it have it's own
  25. //version number
  26. virtual const char* GetToolsVersion() { return "12.0"; }
  27. protected:
  28. virtual bool InitializeWindowsPhone(cmMakefile* mf);
  29. virtual bool InitializeWindowsStore(cmMakefile* mf);
  30. virtual bool SelectWindowsPhoneToolset(std::string& toolset) const;
  31. virtual bool SelectWindowsStoreToolset(std::string& toolset) const;
  32. // These aren't virtual because we need to check if the selected version
  33. // of the toolset is installed
  34. bool IsWindowsDesktopToolsetInstalled() const;
  35. bool IsWindowsPhoneToolsetInstalled() const;
  36. bool IsWindowsStoreToolsetInstalled() const;
  37. virtual const char* GetIDEVersion() { return "12.0"; }
  38. private:
  39. class Factory;
  40. };
  41. #endif