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
10 #include "cmGlobalVisualStudio12Generator.h"
12 class cmGlobalGeneratorFactory;
16 /** \class cmGlobalVisualStudio14Generator */
17 class cmGlobalVisualStudio14Generator : public cmGlobalVisualStudio12Generator
20 static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory();
22 bool MatchesGeneratorName(const std::string& name) const override;
24 const char* GetAndroidApplicationTypeRevision() const override
30 cmGlobalVisualStudio14Generator(cmake* cm, const std::string& name,
31 std::string const& platformInGeneratorName);
33 bool InitializeWindows(cmMakefile* mf) override;
34 bool InitializeWindowsStore(cmMakefile* mf) override;
35 bool InitializeAndroid(cmMakefile* mf) override;
36 bool SelectWindowsStoreToolset(std::string& toolset) const override;
38 // These aren't virtual because we need to check if the selected version
39 // of the toolset is installed
40 bool IsWindowsStoreToolsetInstalled() const;
42 // Used to adjust the max-SDK-version calculation to accommodate user
44 std::string GetWindows10SDKMaxVersion(cmMakefile* mf) const;
46 // Used to make sure that the Windows 10 SDK selected can work with the
47 // version of the toolset.
48 virtual std::string GetWindows10SDKMaxVersionDefault(cmMakefile* mf) const;
50 virtual bool SelectWindows10SDK(cmMakefile* mf, bool required);
52 void SetWindowsTargetPlatformVersion(std::string const& version,
55 // Used to verify that the Desktop toolset for the current generator is
56 // installed on the machine.
57 bool IsWindowsDesktopToolsetInstalled() const override;
59 std::string GetWindows10SDKVersion(cmMakefile* mf);