You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.0 KiB
66 lines
2.0 KiB
8 years ago
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
||
5 years ago
|
#ifndef cmGlobalVisualStudioVersionedGenerator_h
|
||
|
#define cmGlobalVisualStudioVersionedGenerator_h
|
||
8 years ago
|
|
||
7 years ago
|
#include "cmConfigure.h" // IWYU pragma: keep
|
||
8 years ago
|
|
||
|
#include <iosfwd>
|
||
|
#include <string>
|
||
|
|
||
8 years ago
|
#include "cmGlobalVisualStudio14Generator.h"
|
||
8 years ago
|
#include "cmVSSetupHelper.h"
|
||
|
|
||
|
class cmGlobalGeneratorFactory;
|
||
|
class cmake;
|
||
8 years ago
|
|
||
5 years ago
|
/** \class cmGlobalVisualStudioVersionedGenerator */
|
||
|
class cmGlobalVisualStudioVersionedGenerator
|
||
|
: public cmGlobalVisualStudio14Generator
|
||
8 years ago
|
{
|
||
|
public:
|
||
5 years ago
|
static cmGlobalGeneratorFactory* NewFactory15();
|
||
|
static cmGlobalGeneratorFactory* NewFactory16();
|
||
8 years ago
|
|
||
7 years ago
|
bool MatchesGeneratorName(const std::string& name) const override;
|
||
8 years ago
|
|
||
7 years ago
|
bool SetGeneratorInstance(std::string const& i, cmMakefile* mf) override;
|
||
|
|
||
|
bool GetVSInstance(std::string& dir) const;
|
||
8 years ago
|
|
||
6 years ago
|
bool IsDefaultToolset(const std::string& version) const override;
|
||
|
std::string GetAuxiliaryToolset() const override;
|
||
|
|
||
8 years ago
|
protected:
|
||
5 years ago
|
cmGlobalVisualStudioVersionedGenerator(
|
||
|
VSVersion version, cmake* cm, const std::string& name,
|
||
|
std::string const& platformInGeneratorName);
|
||
|
|
||
7 years ago
|
bool InitializeWindows(cmMakefile* mf) override;
|
||
7 years ago
|
bool SelectWindowsStoreToolset(std::string& toolset) const override;
|
||
8 years ago
|
|
||
|
// Used to verify that the Desktop toolset for the current generator is
|
||
|
// installed on the machine.
|
||
7 years ago
|
bool IsWindowsDesktopToolsetInstalled() const override;
|
||
8 years ago
|
|
||
|
// These aren't virtual because we need to check if the selected version
|
||
|
// of the toolset is installed
|
||
|
bool IsWindowsStoreToolsetInstalled() const;
|
||
|
|
||
8 years ago
|
// Check for a Win 8 SDK known to the registry or VS installer tool.
|
||
|
bool IsWin81SDKInstalled() const;
|
||
|
|
||
6 years ago
|
std::string GetWindows10SDKMaxVersion() const override;
|
||
|
|
||
7 years ago
|
std::string FindMSBuildCommand() override;
|
||
|
std::string FindDevEnvCommand() override;
|
||
8 years ago
|
|
||
8 years ago
|
private:
|
||
5 years ago
|
class Factory15;
|
||
|
friend class Factory15;
|
||
|
class Factory16;
|
||
|
friend class Factory16;
|
||
8 years ago
|
mutable cmVSSetupAPIHelper vsSetupAPIHelper;
|
||
8 years ago
|
};
|
||
|
#endif
|