cmake/Source/cmGlobalVisualStudio71Generator.h

81 lines
3.2 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 cmGlobalVisualStudio71Generator_h
#define cmGlobalVisualStudio71Generator_h
#include "cmGlobalVisualStudio7Generator.h"
/** \class cmGlobalVisualStudio71Generator
* \brief Write a Unix makefiles.
*
* cmGlobalVisualStudio71Generator manages UNIX build process for a tree
*/
class cmGlobalVisualStudio71Generator : public cmGlobalVisualStudio7Generator
{
public:
2015-04-27 22:25:09 +02:00
cmGlobalVisualStudio71Generator(const std::string& platformName = "");
2013-03-16 19:13:01 +02:00
static cmGlobalGeneratorFactory* NewFactory() {
return new cmGlobalGeneratorSimpleFactory
<cmGlobalVisualStudio71Generator>(); }
///! Get the name for the generator.
2015-04-27 22:25:09 +02:00
virtual std::string GetName() const {
return cmGlobalVisualStudio71Generator::GetActualName();}
2015-04-27 22:25:09 +02:00
static std::string GetActualName() {return "Visual Studio 7 .NET 2003";}
/** Get the documentation entry for this generator. */
2013-03-16 19:13:01 +02:00
static void GetDocumentation(cmDocumentationEntry& entry);
///! Create a local generator appropriate to this Global Generator
virtual cmLocalGenerator *CreateLocalGenerator();
/**
* 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();
protected:
2009-10-04 10:30:41 +03:00
virtual const char* GetIDEVersion() { return "7.1"; }
2013-03-16 19:13:01 +02:00
virtual void WriteSLNFile(std::ostream& fout,
cmLocalGenerator* root,
std::vector<cmLocalGenerator*>& generators);
virtual void WriteSolutionConfigurations(std::ostream& fout);
2013-03-16 19:13:01 +02:00
virtual void WriteProject(std::ostream& fout,
2015-04-27 22:25:09 +02:00
const std::string& name, const char* path,
2014-08-03 19:52:23 +02:00
cmTarget const& t);
2013-03-16 19:13:01 +02:00
virtual void WriteProjectDepends(std::ostream& fout,
2015-04-27 22:25:09 +02:00
const std::string& name, const char* path,
2014-08-03 19:52:23 +02:00
cmTarget const& t);
2013-03-16 19:13:01 +02:00
virtual void WriteProjectConfigurations(
2015-04-27 22:25:09 +02:00
std::ostream& fout, const std::string& name, cmTarget::TargetType type,
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 = "");
virtual void WriteExternalProject(std::ostream& fout,
2015-04-27 22:25:09 +02:00
const std::string& name,
const char* path,
2012-06-27 20:52:58 +03:00
const char* typeGuid,
2015-04-27 22:25:09 +02:00
const std::set<std::string>& depends);
virtual void WriteSLNHeader(std::ostream& fout);
std::string ProjectConfigurationSectionName;
};
#endif