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:
|
2015-05-24 09:31:14 +00:00
|
|
|
cmGlobalVisualStudio8Generator(cmake* cm, const std::string& name,
|
2016-05-16 14:34:04 +00:00
|
|
|
const std::string& platformName);
|
2012-11-19 18:05:55 +00:00
|
|
|
static cmGlobalGeneratorFactory* NewFactory();
|
2012-08-13 17:42:58 +00:00
|
|
|
|
2004-07-05 16:16:33 +00:00
|
|
|
///! Get the name for the generator.
|
2016-05-16 14:34:04 +00:00
|
|
|
virtual std::string GetName() const { return this->Name; }
|
2004-07-05 16:16:33 +00:00
|
|
|
|
|
|
|
/** Get the documentation entry for this generator. */
|
2012-11-19 15:42:24 +00:00
|
|
|
static void GetDocumentation(cmDocumentationEntry& entry);
|
2012-08-13 17:42:58 +00:00
|
|
|
|
2016-09-16 15:50:06 +00:00
|
|
|
/** Get the name of the main stamp list file. */
|
|
|
|
static std::string GetGenerateStampList();
|
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
virtual void EnableLanguage(std::vector<std::string> const& languages,
|
|
|
|
cmMakefile*, bool optional);
|
2012-11-20 10:33:34 +00:00
|
|
|
virtual void AddPlatformDefinitions(cmMakefile* mf);
|
|
|
|
|
2014-09-05 18:53:01 +00:00
|
|
|
virtual bool SetGeneratorPlatform(std::string const& p, cmMakefile* mf);
|
|
|
|
|
2005-12-13 19:21:28 +00:00
|
|
|
/**
|
|
|
|
* Override Configure and Generate to add the build-system check
|
|
|
|
* target.
|
|
|
|
*/
|
|
|
|
virtual void Configure();
|
2007-11-16 12:01:58 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Where does this version of Visual Studio look for macros for the
|
|
|
|
* current user? Returns the empty string if this version of Visual
|
|
|
|
* Studio does not implement support for VB macros.
|
|
|
|
*/
|
|
|
|
virtual std::string GetUserMacrosDirectory();
|
|
|
|
|
2008-02-15 16:49:58 +00:00
|
|
|
/**
|
|
|
|
* What is the reg key path to "vsmacros" for this version of Visual
|
|
|
|
* Studio?
|
|
|
|
*/
|
|
|
|
virtual std::string GetUserMacrosRegKeyBase();
|
|
|
|
|
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. */
|
2015-10-23 16:26:48 +00:00
|
|
|
virtual bool NeedLinkLibraryDependencies(cmGeneratorTarget* target);
|
2009-10-20 20:38:37 +00:00
|
|
|
|
2012-11-20 12:12:27 +00:00
|
|
|
/** Return true if building for Windows CE */
|
2016-05-16 14:34:04 +00:00
|
|
|
virtual bool TargetsWindowsCE() const
|
|
|
|
{
|
|
|
|
return !this->WindowsCEVersion.empty();
|
|
|
|
}
|
2012-11-20 12:12:27 +00:00
|
|
|
|
2016-04-26 12:16:19 +00:00
|
|
|
/** Is the installed VS an Express edition? */
|
|
|
|
bool IsExpressEdition() const { return this->ExpressEdition; }
|
|
|
|
|
2004-07-05 16:16:33 +00:00
|
|
|
protected:
|
2015-09-15 18:47:35 +00:00
|
|
|
virtual void AddExtraIDETargets();
|
2009-09-16 15:44:08 +00:00
|
|
|
virtual const char* GetIDEVersion() { return "8.0"; }
|
2007-04-04 18:50:35 +00:00
|
|
|
|
2013-11-13 19:27:51 +00:00
|
|
|
virtual std::string FindDevEnvCommand();
|
|
|
|
|
2007-12-21 20:04:06 +00:00
|
|
|
virtual bool VSLinksDependencies() const { 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 */
|
2016-10-18 19:28:46 +00:00
|
|
|
virtual bool NeedsDeploy(cmStateEnums::TargetType type) const;
|
2014-07-29 15:28:02 +00:00
|
|
|
|
2009-07-29 15:28:55 +00:00
|
|
|
static cmIDEFlagTable const* GetExtraFlagTableVS8();
|
2004-07-05 16:16:33 +00:00
|
|
|
virtual void WriteSLNHeader(std::ostream& fout);
|
2015-05-20 17:55:21 +00:00
|
|
|
virtual void WriteSolutionConfigurations(
|
|
|
|
std::ostream& fout, std::vector<std::string> const& configs);
|
2012-10-11 19:57:22 +00:00
|
|
|
virtual void WriteProjectConfigurations(
|
2016-10-18 19:28:46 +00:00
|
|
|
std::ostream& fout, const std::string& name, cmStateEnums::TargetType type,
|
2015-05-20 17:55:21 +00:00
|
|
|
std::vector<std::string> const& configs,
|
2012-10-11 19:57:22 +00:00
|
|
|
const std::set<std::string>& configsPartOfDefaultBuild,
|
2014-02-24 22:36:27 +00:00
|
|
|
const std::string& platformMapping = "");
|
2010-12-01 16:43:30 +00:00
|
|
|
virtual bool ComputeTargetDepends();
|
2016-05-16 14:34:04 +00:00
|
|
|
virtual void WriteProjectDepends(std::ostream& fout, const std::string& name,
|
2015-10-23 16:26:44 +00:00
|
|
|
const char* path,
|
2016-05-16 14:34:04 +00:00
|
|
|
const cmGeneratorTarget* t);
|
2012-11-19 18:05:55 +00:00
|
|
|
|
2016-04-26 12:22:27 +00:00
|
|
|
bool UseFolderProperty();
|
|
|
|
|
2012-11-20 11:16:09 +00:00
|
|
|
std::string Name;
|
2012-11-20 12:12:27 +00:00
|
|
|
std::string WindowsCEVersion;
|
2016-04-26 12:16:19 +00:00
|
|
|
bool ExpressEdition;
|
2012-11-19 18:05:55 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
class Factory;
|
2012-11-20 12:12:27 +00:00
|
|
|
friend class Factory;
|
2004-07-05 16:16:33 +00:00
|
|
|
};
|
|
|
|
#endif
|