resolve cyclic dependency with zstd
[platform/upstream/cmake.git] / Source / cmGlobalVisualStudio14Generator.h
1 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2    file Copyright.txt or https://cmake.org/licensing for details.  */
3 #pragma once
4
5 #include "cmConfigure.h" // IWYU pragma: keep
6
7 #include <memory>
8 #include <string>
9
10 #include "cmGlobalVisualStudio12Generator.h"
11
12 class cmGlobalGeneratorFactory;
13 class cmMakefile;
14 class cmake;
15
16 /** \class cmGlobalVisualStudio14Generator  */
17 class cmGlobalVisualStudio14Generator : public cmGlobalVisualStudio12Generator
18 {
19 public:
20   static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory();
21
22   bool MatchesGeneratorName(const std::string& name) const override;
23
24   const char* GetAndroidApplicationTypeRevision() const override
25   {
26     return "2.0";
27   }
28
29 protected:
30   cmGlobalVisualStudio14Generator(cmake* cm, const std::string& name,
31                                   std::string const& platformInGeneratorName);
32
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;
37
38   // These aren't virtual because we need to check if the selected version
39   // of the toolset is installed
40   bool IsWindowsStoreToolsetInstalled() const;
41
42   // Used to adjust the max-SDK-version calculation to accommodate user
43   // configuration.
44   std::string GetWindows10SDKMaxVersion(cmMakefile* mf) const;
45
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;
49
50   virtual bool SelectWindows10SDK(cmMakefile* mf, bool required);
51
52   void SetWindowsTargetPlatformVersion(std::string const& version,
53                                        cmMakefile* mf);
54
55   // Used to verify that the Desktop toolset for the current generator is
56   // installed on the machine.
57   bool IsWindowsDesktopToolsetInstalled() const override;
58
59   std::string GetWindows10SDKVersion(cmMakefile* mf);
60
61 private:
62   class Factory;
63   friend class Factory;
64 };