2016-09-27 15:01:08 -04:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2014-06-24 15:39:11 -04:00
|
|
|
#ifndef cmGlobalVisualStudio14Generator_h
|
|
|
|
#define cmGlobalVisualStudio14Generator_h
|
|
|
|
|
|
|
|
#include "cmGlobalVisualStudio12Generator.h"
|
|
|
|
|
|
|
|
/** \class cmGlobalVisualStudio14Generator */
|
2016-05-16 10:34:04 -04:00
|
|
|
class cmGlobalVisualStudio14Generator : public cmGlobalVisualStudio12Generator
|
2014-06-24 15:39:11 -04:00
|
|
|
{
|
|
|
|
public:
|
2015-05-24 11:31:14 +02:00
|
|
|
cmGlobalVisualStudio14Generator(cmake* cm, const std::string& name,
|
2016-05-16 10:34:04 -04:00
|
|
|
const std::string& platformName);
|
2014-06-24 15:39:11 -04:00
|
|
|
static cmGlobalGeneratorFactory* NewFactory();
|
|
|
|
|
|
|
|
virtual bool MatchesGeneratorName(const std::string& name) const;
|
|
|
|
|
|
|
|
virtual void WriteSLNHeader(std::ostream& fout);
|
|
|
|
|
|
|
|
virtual const char* GetToolsVersion() { return "14.0"; }
|
|
|
|
protected:
|
2015-09-30 13:22:43 -07:00
|
|
|
virtual bool InitializeWindows(cmMakefile* mf);
|
2015-10-02 11:34:55 -07:00
|
|
|
virtual bool InitializeWindowsStore(cmMakefile* mf);
|
|
|
|
virtual bool SelectWindowsStoreToolset(std::string& toolset) const;
|
|
|
|
|
|
|
|
// These aren't virtual because we need to check if the selected version
|
|
|
|
// of the toolset is installed
|
|
|
|
bool IsWindowsStoreToolsetInstalled() const;
|
|
|
|
|
2014-06-24 15:39:11 -04:00
|
|
|
virtual const char* GetIDEVersion() { return "14.0"; }
|
2016-01-21 11:44:17 -05:00
|
|
|
virtual bool SelectWindows10SDK(cmMakefile* mf, bool required);
|
2015-09-01 13:52:36 -07:00
|
|
|
|
|
|
|
// Used to verify that the Desktop toolset for the current generator is
|
|
|
|
// installed on the machine.
|
|
|
|
virtual bool IsWindowsDesktopToolsetInstalled() const;
|
|
|
|
|
2015-09-30 13:22:43 -07:00
|
|
|
std::string GetWindows10SDKVersion();
|
|
|
|
|
2014-06-24 15:39:11 -04:00
|
|
|
private:
|
|
|
|
class Factory;
|
|
|
|
};
|
|
|
|
#endif
|