cmake/Source/cmGlobalVisualStudio8Generator.h

100 lines
3.3 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2022-03-29 21:10:50 +02:00
#include <iosfwd>
#include <set>
#include <string>
#include <vector>
2021-11-20 13:41:27 +01:00
#include <cm/optional>
#include "cmGlobalVisualStudio71Generator.h"
2022-03-29 21:10:50 +02:00
class cmGeneratorTarget;
class cmMakefile;
class cmake;
struct cmIDEFlagTable;
/** \class cmGlobalVisualStudio8Generator
* \brief Write a Unix makefiles.
*
* cmGlobalVisualStudio8Generator manages UNIX build process for a tree
*/
class cmGlobalVisualStudio8Generator : public cmGlobalVisualStudio71Generator
{
public:
2019-11-11 23:01:05 +01:00
//! Get the name for the generator.
2018-04-23 21:13:27 +02:00
std::string GetName() const override { return this->Name; }
2017-04-14 19:02:05 +02:00
/** Get the name of the main stamp list file. */
static std::string GetGenerateStampList();
2018-04-23 21:13:27 +02:00
void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
bool optional) override;
2013-03-16 19:13:01 +02:00
virtual void AddPlatformDefinitions(cmMakefile* mf);
2018-04-23 21:13:27 +02:00
bool SetGeneratorPlatform(std::string const& p, cmMakefile* mf) override;
2015-04-27 22:25:09 +02:00
2021-11-20 13:41:27 +01:00
cm::optional<std::string> const& GetTargetFrameworkVersion() const;
cm::optional<std::string> const& GetTargetFrameworkIdentifier() const;
cm::optional<std::string> const& GetTargetFrameworkTargetsVersion() const;
/**
* Override Configure and Generate to add the build-system check
* target.
*/
2018-04-23 21:13:27 +02:00
void Configure() override;
2009-11-06 22:07:41 +02:00
/** Return true if the target project file should have the option
LinkLibraryDependencies and link to .sln dependencies. */
2018-04-23 21:13:27 +02:00
bool NeedLinkLibraryDependencies(cmGeneratorTarget* target) override;
2009-11-06 22:07:41 +02:00
2013-03-16 19:13:01 +02:00
/** Return true if building for Windows CE */
2018-04-23 21:13:27 +02:00
bool TargetsWindowsCE() const override
2016-07-09 11:21:54 +02:00
{
return !this->WindowsCEVersion.empty();
}
protected:
2019-11-11 23:01:05 +01:00
cmGlobalVisualStudio8Generator(cmake* cm, const std::string& name,
std::string const& platformInGeneratorName);
2018-04-23 21:13:27 +02:00
void AddExtraIDETargets() override;
2018-04-23 21:13:27 +02:00
std::string FindDevEnvCommand() override;
2014-08-03 19:52:23 +02:00
2018-04-23 21:13:27 +02:00
bool VSLinksDependencies() const override { return false; }
2014-08-03 19:52:23 +02:00
bool AddCheckTarget();
2009-11-06 22:07:41 +02:00
2015-04-27 22:25:09 +02:00
/** Return true if the configuration needs to be deployed */
2019-11-11 23:01:05 +01:00
virtual bool NeedsDeploy(cmGeneratorTarget const& target,
const char* config) const;
/** Returns true if the target system support debugging deployment. */
virtual bool TargetSystemSupportsDeployment() const;
2015-04-27 22:25:09 +02:00
2009-10-04 10:30:41 +03:00
static cmIDEFlagTable const* GetExtraFlagTableVS8();
2018-04-23 21:13:27 +02:00
void WriteSolutionConfigurations(
std::ostream& fout, std::vector<std::string> const& configs) override;
void WriteProjectConfigurations(
2017-07-20 19:35:53 +02:00
std::ostream& fout, const std::string& name,
cmGeneratorTarget const& target, std::vector<std::string> const& configs,
2013-03-16 19:13:01 +02:00
const std::set<std::string>& configsPartOfDefaultBuild,
2018-04-23 21:13:27 +02:00
const std::string& platformMapping = "") override;
bool ComputeTargetDepends() override;
void WriteProjectDepends(std::ostream& fout, const std::string& name,
2020-08-30 11:54:41 +02:00
const std::string& path,
2018-04-23 21:13:27 +02:00
const cmGeneratorTarget* t) override;
2016-07-09 11:21:54 +02:00
2019-11-11 23:01:05 +01:00
bool UseFolderProperty() const override;
2010-11-13 01:00:53 +02:00
2013-03-16 19:13:01 +02:00
std::string Name;
std::string WindowsCEVersion;
2021-11-20 13:41:27 +01:00
cm::optional<std::string> DefaultTargetFrameworkVersion;
cm::optional<std::string> DefaultTargetFrameworkIdentifier;
cm::optional<std::string> DefaultTargetFrameworkTargetsVersion;
};