cmGlobalVisualStudio12Generator.h 1.62 KB
Newer Older
1 2
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
3 4 5
#ifndef cmGlobalVisualStudio12Generator_h
#define cmGlobalVisualStudio12Generator_h

6
#include "cmConfigure.h" // IWYU pragma: keep
7 8 9 10

#include <iosfwd>
#include <string>

11 12
#include "cmGlobalVisualStudio11Generator.h"

13 14 15 16
class cmGlobalGeneratorFactory;
class cmMakefile;
class cmake;

17
/** \class cmGlobalVisualStudio12Generator  */
18
class cmGlobalVisualStudio12Generator : public cmGlobalVisualStudio11Generator
19 20 21 22
{
public:
  static cmGlobalGeneratorFactory* NewFactory();

23
  bool MatchesGeneratorName(const std::string& name) const override;
24

25
protected:
26 27 28
  cmGlobalVisualStudio12Generator(cmake* cm, const std::string& name,
                                  std::string const& platformInGeneratorName);

29
  bool ProcessGeneratorToolsetField(std::string const& key,
30
                                    std::string const& value) override;
31

32 33 34 35
  bool InitializeWindowsPhone(cmMakefile* mf) override;
  bool InitializeWindowsStore(cmMakefile* mf) override;
  bool SelectWindowsPhoneToolset(std::string& toolset) const override;
  bool SelectWindowsStoreToolset(std::string& toolset) const override;
36

37 38
  // Used to verify that the Desktop toolset for the current generator is
  // installed on the machine.
39
  bool IsWindowsDesktopToolsetInstalled() const override;
40

41 42 43 44
  // These aren't virtual because we need to check if the selected version
  // of the toolset is installed
  bool IsWindowsPhoneToolsetInstalled() const;
  bool IsWindowsStoreToolsetInstalled() const;
45

46 47
private:
  class Factory;
48
  friend class Factory;
49 50
};
#endif