2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2013-06-28 20:12:08 +00:00
|
|
|
#ifndef cmGlobalVisualStudio12Generator_h
|
|
|
|
#define cmGlobalVisualStudio12Generator_h
|
|
|
|
|
2017-08-25 18:39:02 +00:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-11-25 21:54:58 +00:00
|
|
|
|
|
|
|
#include <iosfwd>
|
2020-01-02 16:07:09 +00:00
|
|
|
#include <memory>
|
2016-11-25 21:54:58 +00:00
|
|
|
#include <string>
|
|
|
|
|
2013-06-28 20:12:08 +00:00
|
|
|
#include "cmGlobalVisualStudio11Generator.h"
|
|
|
|
|
2016-11-25 21:54:58 +00:00
|
|
|
class cmGlobalGeneratorFactory;
|
|
|
|
class cmMakefile;
|
|
|
|
class cmake;
|
|
|
|
|
2013-06-28 20:12:08 +00:00
|
|
|
/** \class cmGlobalVisualStudio12Generator */
|
2016-05-16 14:34:04 +00:00
|
|
|
class cmGlobalVisualStudio12Generator : public cmGlobalVisualStudio11Generator
|
2013-06-28 20:12:08 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-01-02 16:07:09 +00:00
|
|
|
static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory();
|
2013-06-28 20:12:08 +00:00
|
|
|
|
2017-12-16 02:17:49 +00:00
|
|
|
bool MatchesGeneratorName(const std::string& name) const override;
|
2013-10-28 14:08:11 +00:00
|
|
|
|
2013-06-28 20:12:08 +00:00
|
|
|
protected:
|
2019-01-10 13:37:40 +00:00
|
|
|
cmGlobalVisualStudio12Generator(cmake* cm, const std::string& name,
|
|
|
|
std::string const& platformInGeneratorName);
|
|
|
|
|
2017-02-08 20:25:23 +00:00
|
|
|
bool ProcessGeneratorToolsetField(std::string const& key,
|
2017-09-15 13:56:26 +00:00
|
|
|
std::string const& value) override;
|
2016-10-07 19:57:04 +00:00
|
|
|
|
2017-12-16 02:17:49 +00:00
|
|
|
bool InitializeWindowsPhone(cmMakefile* mf) override;
|
|
|
|
bool InitializeWindowsStore(cmMakefile* mf) override;
|
|
|
|
bool SelectWindowsPhoneToolset(std::string& toolset) const override;
|
|
|
|
bool SelectWindowsStoreToolset(std::string& toolset) const override;
|
2014-11-13 19:47:01 +00:00
|
|
|
|
2015-09-01 20:52:36 +00:00
|
|
|
// Used to verify that the Desktop toolset for the current generator is
|
|
|
|
// installed on the machine.
|
2017-12-16 02:17:49 +00:00
|
|
|
bool IsWindowsDesktopToolsetInstalled() const override;
|
2015-09-01 20:52:36 +00:00
|
|
|
|
2014-11-13 19:47:01 +00:00
|
|
|
// These aren't virtual because we need to check if the selected version
|
|
|
|
// of the toolset is installed
|
|
|
|
bool IsWindowsPhoneToolsetInstalled() const;
|
|
|
|
bool IsWindowsStoreToolsetInstalled() const;
|
2018-06-01 13:53:41 +00:00
|
|
|
|
2013-06-28 20:12:08 +00:00
|
|
|
private:
|
|
|
|
class Factory;
|
2019-01-10 13:37:40 +00:00
|
|
|
friend class Factory;
|
2013-06-28 20:12:08 +00:00
|
|
|
};
|
|
|
|
#endif
|