1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
11 #include "cmGlobalVisualStudio12Generator.h"
13 class cmGlobalGeneratorFactory;
17 /** \class cmGlobalVisualStudio14Generator */
18 class cmGlobalVisualStudio14Generator : public cmGlobalVisualStudio12Generator
21 static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory();
23 bool MatchesGeneratorName(const std::string& name) const override;
25 const char* GetAndroidApplicationTypeRevision() const override
31 cmGlobalVisualStudio14Generator(cmake* cm, const std::string& name,
32 std::string const& platformInGeneratorName);
34 bool InitializeWindows(cmMakefile* mf) override;
35 bool InitializeWindowsStore(cmMakefile* mf) override;
36 bool InitializeAndroid(cmMakefile* mf) override;
37 bool SelectWindowsStoreToolset(std::string& toolset) const override;
39 // These aren't virtual because we need to check if the selected version
40 // of the toolset is installed
41 bool IsWindowsStoreToolsetInstalled() const;
43 // Used to adjust the max-SDK-version calculation to accommodate user
45 std::string GetWindows10SDKMaxVersion(cmMakefile* mf) const;
47 // Used to make sure that the Windows 10 SDK selected can work with the
48 // version of the toolset.
49 virtual std::string GetWindows10SDKMaxVersionDefault(cmMakefile* mf) const;
51 virtual bool SelectWindows10SDK(cmMakefile* mf, bool required);
53 void SetWindowsTargetPlatformVersion(std::string const& version,
56 // Used to verify that the Desktop toolset for the current generator is
57 // installed on the machine.
58 bool IsWindowsDesktopToolsetInstalled() const override;
60 std::string GetWindows10SDKVersion(cmMakefile* mf);