cmake/Source/cmGlobalVisualStudio8Generator.h

111 lines
3.8 KiB
C
Raw Normal View History

2009-10-04 10:30:41 +03:00
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
2009-10-04 10:30:41 +03:00
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
2009-10-04 10:30:41 +03: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.
============================================================================*/
#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-08-17 11:37:30 +02:00
cmGlobalVisualStudio8Generator(cmake* cm, const std::string& name,
2016-07-09 11:21:54 +02:00
const std::string& platformName);
2013-03-16 19:13:01 +02:00
static cmGlobalGeneratorFactory* NewFactory();
///! Get the name for the generator.
2016-07-09 11:21:54 +02:00
virtual std::string GetName() const { return this->Name; }
/** Get the documentation entry for this generator. */
2013-03-16 19:13:01 +02:00
static void GetDocumentation(cmDocumentationEntry& entry);
2016-07-09 11:21:54 +02:00
virtual void EnableLanguage(std::vector<std::string> const& languages,
cmMakefile*, bool optional);
2013-03-16 19:13:01 +02:00
virtual void AddPlatformDefinitions(cmMakefile* mf);
2015-04-27 22:25:09 +02:00
virtual bool SetGeneratorPlatform(std::string const& p, cmMakefile* mf);
/**
* Override Configure and Generate to add the build-system check
* target.
*/
virtual void Configure();
/**
* 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();
/**
* What is the reg key path to "vsmacros" for this version of Visual
* Studio?
*/
virtual std::string GetUserMacrosRegKeyBase();
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. */
2016-03-13 13:35:51 +01:00
virtual bool NeedLinkLibraryDependencies(cmGeneratorTarget* target);
2009-11-06 22:07:41 +02:00
2013-03-16 19:13:01 +02:00
/** Return true if building for Windows CE */
2016-07-09 11:21:54 +02:00
virtual bool TargetsWindowsCE() const
{
return !this->WindowsCEVersion.empty();
}
/** Is the installed VS an Express edition? */
bool IsExpressEdition() const { return this->ExpressEdition; }
2013-03-16 19:13:01 +02:00
protected:
2016-03-13 13:35:51 +01:00
virtual void AddExtraIDETargets();
2009-10-04 10:30:41 +03:00
virtual const char* GetIDEVersion() { return "8.0"; }
2014-08-03 19:52:23 +02:00
virtual std::string FindDevEnvCommand();
virtual bool VSLinksDependencies() const { 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 */
2016-03-13 13:35:51 +01:00
virtual bool NeedsDeploy(cmState::TargetType type) const;
2015-04-27 22:25:09 +02:00
2009-10-04 10:30:41 +03:00
static cmIDEFlagTable const* GetExtraFlagTableVS8();
virtual void WriteSLNHeader(std::ostream& fout);
2015-08-17 11:37:30 +02:00
virtual void WriteSolutionConfigurations(
std::ostream& fout, std::vector<std::string> const& configs);
2013-03-16 19:13:01 +02:00
virtual void WriteProjectConfigurations(
2016-03-13 13:35:51 +01:00
std::ostream& fout, const std::string& name, cmState::TargetType type,
2015-08-17 11:37:30 +02:00
std::vector<std::string> const& configs,
2013-03-16 19:13:01 +02:00
const std::set<std::string>& configsPartOfDefaultBuild,
2015-04-27 22:25:09 +02:00
const std::string& platformMapping = "");
2011-01-16 11:35:12 +01:00
virtual bool ComputeTargetDepends();
2016-07-09 11:21:54 +02:00
virtual void WriteProjectDepends(std::ostream& fout, const std::string& name,
2016-03-13 13:35:51 +01:00
const char* path,
2016-07-09 11:21:54 +02:00
const cmGeneratorTarget* t);
bool UseFolderProperty();
2010-11-13 01:00:53 +02:00
2013-03-16 19:13:01 +02:00
std::string Name;
std::string WindowsCEVersion;
2016-07-09 11:21:54 +02:00
bool ExpressEdition;
2013-03-16 19:13:01 +02:00
private:
class Factory;
friend class Factory;
};
#endif