cmGlobalVisualStudio14Generator.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 cmGlobalVisualStudio14Generator_h
  4. #define cmGlobalVisualStudio14Generator_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <iosfwd>
  7. #include <memory>
  8. #include <string>
  9. #include "cmGlobalVisualStudio12Generator.h"
  10. class cmGlobalGeneratorFactory;
  11. class cmMakefile;
  12. class cmake;
  13. /** \class cmGlobalVisualStudio14Generator */
  14. class cmGlobalVisualStudio14Generator : public cmGlobalVisualStudio12Generator
  15. {
  16. public:
  17. static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory();
  18. bool MatchesGeneratorName(const std::string& name) const override;
  19. const char* GetAndroidApplicationTypeRevision() const override
  20. {
  21. return "2.0";
  22. }
  23. protected:
  24. cmGlobalVisualStudio14Generator(cmake* cm, const std::string& name,
  25. std::string const& platformInGeneratorName);
  26. bool InitializeWindows(cmMakefile* mf) override;
  27. bool InitializeWindowsStore(cmMakefile* mf) override;
  28. bool InitializeAndroid(cmMakefile* mf) override;
  29. bool SelectWindowsStoreToolset(std::string& toolset) const override;
  30. // These aren't virtual because we need to check if the selected version
  31. // of the toolset is installed
  32. bool IsWindowsStoreToolsetInstalled() const;
  33. // Used to make sure that the Windows 10 SDK selected can work with the
  34. // version of the toolset.
  35. virtual std::string GetWindows10SDKMaxVersion() const;
  36. virtual bool SelectWindows10SDK(cmMakefile* mf, bool required);
  37. void SetWindowsTargetPlatformVersion(std::string const& version,
  38. cmMakefile* mf);
  39. // Used to verify that the Desktop toolset for the current generator is
  40. // installed on the machine.
  41. bool IsWindowsDesktopToolsetInstalled() const override;
  42. std::string GetWindows10SDKVersion();
  43. private:
  44. class Factory;
  45. friend class Factory;
  46. };
  47. #endif