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. */
|
2004-07-05 16:16:33 +00:00
|
|
|
#ifndef cmGlobalVisualStudio8Generator_h
|
|
|
|
#define cmGlobalVisualStudio8Generator_h
|
|
|
|
|
|
|
|
#include "cmGlobalVisualStudio71Generator.h"
|
|
|
|
|
|
|
|
/** \class cmGlobalVisualStudio8Generator
|
|
|
|
* \brief Write a Unix makefiles.
|
|
|
|
*
|
|
|
|
* cmGlobalVisualStudio8Generator manages UNIX build process for a tree
|
|
|
|
*/
|
|
|
|
class cmGlobalVisualStudio8Generator : public cmGlobalVisualStudio71Generator
|
|
|
|
{
|
|
|
|
public:
|
2019-03-31 09:27:12 +00:00
|
|
|
//! Get the name for the generator.
|
2017-12-16 02:17:49 +00:00
|
|
|
std::string GetName() const override { return this->Name; }
|
2004-07-05 16:16:33 +00:00
|
|
|
|
2016-09-16 15:50:06 +00:00
|
|
|
/** Get the name of the main stamp list file. */
|
|
|
|
static std::string GetGenerateStampList();
|
|
|
|
|
2017-12-16 02:17:49 +00:00
|
|
|
void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
|
|
|
|
bool optional) override;
|
2012-11-20 10:33:34 +00:00
|
|
|
virtual void AddPlatformDefinitions(cmMakefile* mf);
|
|
|
|
|
2017-12-16 02:17:49 +00:00
|
|
|
bool SetGeneratorPlatform(std::string const& p, cmMakefile* mf) override;
|
2014-09-05 18:53:01 +00:00
|
|
|
|
2005-12-13 19:21:28 +00:00
|
|
|
/**
|
|
|
|
* Override Configure and Generate to add the build-system check
|
|
|
|
* target.
|
|
|
|
*/
|
2017-12-16 02:17:49 +00:00
|
|
|
void Configure() override;
|
2007-11-16 12:01:58 +00:00
|
|
|
|
2009-10-20 20:38:37 +00:00
|
|
|
/** Return true if the target project file should have the option
|
|
|
|
LinkLibraryDependencies and link to .sln dependencies. */
|
2017-12-16 02:17:49 +00:00
|
|
|
bool NeedLinkLibraryDependencies(cmGeneratorTarget* target) override;
|
2009-10-20 20:38:37 +00:00
|
|
|
|
2012-11-20 12:12:27 +00:00
|
|
|
/** Return true if building for Windows CE */
|
2017-12-16 02:17:49 +00:00
|
|
|
bool TargetsWindowsCE() const override
|
2016-05-16 14:34:04 +00:00
|
|
|
{
|
|
|
|
return !this->WindowsCEVersion.empty();
|
|
|
|
}
|
2012-11-20 12:12:27 +00:00
|
|
|
|
2004-07-05 16:16:33 +00:00
|
|
|
protected:
|
2019-01-10 13:37:40 +00:00
|
|
|
cmGlobalVisualStudio8Generator(cmake* cm, const std::string& name,
|
|
|
|
std::string const& platformInGeneratorName);
|
|
|
|
|
2017-12-16 02:17:49 +00:00
|
|
|
void AddExtraIDETargets() override;
|
2007-04-04 18:50:35 +00:00
|
|
|
|
2017-12-16 02:17:49 +00:00
|
|
|
std::string FindDevEnvCommand() override;
|
2013-11-13 19:27:51 +00:00
|
|
|
|
2017-12-16 02:17:49 +00:00
|
|
|
bool VSLinksDependencies() const override { return false; }
|
2007-04-04 18:50:35 +00:00
|
|
|
|
2013-08-27 18:15:49 +00:00
|
|
|
bool AddCheckTarget();
|
2009-10-19 14:47:34 +00:00
|
|
|
|
2014-07-29 15:28:02 +00:00
|
|
|
/** Return true if the configuration needs to be deployed */
|
2019-02-19 23:02:34 +00:00
|
|
|
virtual bool NeedsDeploy(cmGeneratorTarget const& target,
|
|
|
|
const char* config) const;
|
|
|
|
|
|
|
|
/** Returns true if the target system support debugging deployment. */
|
|
|
|
virtual bool TargetSystemSupportsDeployment() const;
|
2014-07-29 15:28:02 +00:00
|
|
|
|
2009-07-29 15:28:55 +00:00
|
|
|
static cmIDEFlagTable const* GetExtraFlagTableVS8();
|
2017-12-16 02:17:49 +00:00
|
|
|
void WriteSolutionConfigurations(
|
|
|
|
std::ostream& fout, std::vector<std::string> const& configs) override;
|
|
|
|
void WriteProjectConfigurations(
|
2017-04-04 19:12:26 +00:00
|
|
|
std::ostream& fout, const std::string& name,
|
|
|
|
cmGeneratorTarget const& target, std::vector<std::string> const& configs,
|
2012-10-11 19:57:22 +00:00
|
|
|
const std::set<std::string>& configsPartOfDefaultBuild,
|
2017-12-16 02:17:49 +00:00
|
|
|
const std::string& platformMapping = "") override;
|
|
|
|
bool ComputeTargetDepends() override;
|
|
|
|
void WriteProjectDepends(std::ostream& fout, const std::string& name,
|
2020-01-29 17:40:00 +00:00
|
|
|
const std::string& path,
|
2017-12-16 02:17:49 +00:00
|
|
|
const cmGeneratorTarget* t) override;
|
2012-11-19 18:05:55 +00:00
|
|
|
|
2018-12-30 17:32:55 +00:00
|
|
|
bool UseFolderProperty() const override;
|
2016-04-26 12:22:27 +00:00
|
|
|
|
2012-11-20 11:16:09 +00:00
|
|
|
std::string Name;
|
2012-11-20 12:12:27 +00:00
|
|
|
std::string WindowsCEVersion;
|
2004-07-05 16:16:33 +00:00
|
|
|
};
|
|
|
|
#endif
|