2009-09-28 11:43:28 -04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2004-07-05 12:16:33 -04:00
|
|
|
|
2009-09-28 11:43:28 -04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2004-07-05 12:16:33 -04:00
|
|
|
|
2009-09-28 11:43:28 -04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
2004-07-05 12:16:33 -04: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 11:31:14 +02:00
|
|
|
cmGlobalVisualStudio8Generator(cmake* cm, const std::string& name,
|
2014-07-17 16:16:10 -04:00
|
|
|
const std::string& platformName);
|
2012-11-19 19:05:55 +01:00
|
|
|
static cmGlobalGeneratorFactory* NewFactory();
|
2012-08-13 13:42:58 -04:00
|
|
|
|
2004-07-05 12:16:33 -04:00
|
|
|
///! Get the name for the generator.
|
2014-02-24 17:36:27 -05:00
|
|
|
virtual std::string GetName() const {return this->Name;}
|
2004-07-05 12:16:33 -04:00
|
|
|
|
|
|
|
/** Get the documentation entry for this generator. */
|
2012-11-19 16:42:24 +01:00
|
|
|
static void GetDocumentation(cmDocumentationEntry& entry);
|
2012-08-13 13:42:58 -04:00
|
|
|
|
2014-07-17 16:34:21 -04:00
|
|
|
virtual void EnableLanguage(std::vector<std::string>const& languages,
|
|
|
|
cmMakefile *, bool optional);
|
2012-11-20 11:33:34 +01:00
|
|
|
virtual void AddPlatformDefinitions(cmMakefile* mf);
|
|
|
|
|
2014-09-05 14:53:01 -04:00
|
|
|
virtual bool SetGeneratorPlatform(std::string const& p, cmMakefile* mf);
|
|
|
|
|
2005-12-13 14:21:28 -05:00
|
|
|
/**
|
|
|
|
* Override Configure and Generate to add the build-system check
|
|
|
|
* target.
|
|
|
|
*/
|
|
|
|
virtual void Configure();
|
2007-11-16 07:01:58 -05: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 11:49:58 -05:00
|
|
|
/**
|
|
|
|
* What is the reg key path to "vsmacros" for this version of Visual
|
|
|
|
* Studio?
|
|
|
|
*/
|
|
|
|
virtual std::string GetUserMacrosRegKeyBase();
|
|
|
|
|
2009-10-20 16:38:37 -04:00
|
|
|
/** Return true if the target project file should have the option
|
|
|
|
LinkLibraryDependencies and link to .sln dependencies. */
|
|
|
|
virtual bool NeedLinkLibraryDependencies(cmTarget& target);
|
|
|
|
|
2012-11-20 13:12:27 +01:00
|
|
|
/** Return true if building for Windows CE */
|
|
|
|
virtual bool TargetsWindowsCE() const {
|
|
|
|
return !this->WindowsCEVersion.empty(); }
|
|
|
|
|
2004-07-05 12:16:33 -04:00
|
|
|
protected:
|
2014-07-22 15:01:05 -04:00
|
|
|
virtual void Generate();
|
2009-09-16 11:44:08 -04:00
|
|
|
virtual const char* GetIDEVersion() { return "8.0"; }
|
2007-04-04 14:50:35 -04:00
|
|
|
|
2013-11-13 14:27:51 -05:00
|
|
|
virtual std::string FindDevEnvCommand();
|
|
|
|
|
2007-12-21 15:04:06 -05:00
|
|
|
virtual bool VSLinksDependencies() const { return false; }
|
2007-04-04 14:50:35 -04:00
|
|
|
|
2013-08-27 14:15:49 -04:00
|
|
|
bool AddCheckTarget();
|
2009-10-19 10:47:34 -04:00
|
|
|
|
2014-07-29 11:28:02 -04:00
|
|
|
/** Return true if the configuration needs to be deployed */
|
|
|
|
virtual bool NeedsDeploy(cmTarget::TargetType type) const;
|
|
|
|
|
2009-07-29 11:28:55 -04:00
|
|
|
static cmIDEFlagTable const* GetExtraFlagTableVS8();
|
2004-07-05 12:16:33 -04:00
|
|
|
virtual void WriteSLNHeader(std::ostream& fout);
|
2015-05-20 13:55:21 -04:00
|
|
|
virtual void WriteSolutionConfigurations(
|
|
|
|
std::ostream& fout, std::vector<std::string> const& configs);
|
2012-10-11 21:57:22 +02:00
|
|
|
virtual void WriteProjectConfigurations(
|
2014-02-07 15:40:05 -05:00
|
|
|
std::ostream& fout, const std::string& name, cmTarget::TargetType type,
|
2015-05-20 13:55:21 -04:00
|
|
|
std::vector<std::string> const& configs,
|
2012-10-11 21:57:22 +02:00
|
|
|
const std::set<std::string>& configsPartOfDefaultBuild,
|
2014-02-24 17:36:27 -05:00
|
|
|
const std::string& platformMapping = "");
|
2010-12-01 11:43:30 -05:00
|
|
|
virtual bool ComputeTargetDepends();
|
2014-02-07 15:40:05 -05:00
|
|
|
virtual void WriteProjectDepends(std::ostream& fout,
|
|
|
|
const std::string& name,
|
2013-12-10 15:16:23 +01:00
|
|
|
const char* path, cmTarget const& t);
|
2012-11-19 19:05:55 +01:00
|
|
|
|
2012-11-20 12:16:09 +01:00
|
|
|
std::string Name;
|
2012-11-20 13:12:27 +01:00
|
|
|
std::string WindowsCEVersion;
|
2012-11-19 19:05:55 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
class Factory;
|
2012-11-20 13:12:27 +01:00
|
|
|
friend class Factory;
|
2004-07-05 12:16:33 -04:00
|
|
|
};
|
|
|
|
#endif
|