1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmGlobalVisualStudio71Generator.h,v $
6 Date: $Date: 2009-07-14 18:16:46 $
7 Version: $Revision: 1.19 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmGlobalVisualStudio71Generator_h
18 #define cmGlobalVisualStudio71Generator_h
20 #include "cmGlobalVisualStudio7Generator.h"
23 /** \class cmGlobalVisualStudio71Generator
24 * \brief Write a Unix makefiles.
26 * cmGlobalVisualStudio71Generator manages UNIX build process for a tree
28 class cmGlobalVisualStudio71Generator
: public cmGlobalVisualStudio7Generator
31 cmGlobalVisualStudio71Generator();
32 static cmGlobalGenerator
* New()
33 { return new cmGlobalVisualStudio71Generator
; }
35 ///! Get the name for the generator.
36 virtual const char* GetName() const {
37 return cmGlobalVisualStudio71Generator::GetActualName();}
38 static const char* GetActualName() {return "Visual Studio 7 .NET 2003";}
40 /** Get the documentation entry for this generator. */
41 virtual void GetDocumentation(cmDocumentationEntry
& entry
) const;
43 ///! Create a local generator appropriate to this Global Generator
44 virtual cmLocalGenerator
*CreateLocalGenerator();
47 * Where does this version of Visual Studio look for macros for the
48 * current user? Returns the empty string if this version of Visual
49 * Studio does not implement support for VB macros.
51 virtual std::string
GetUserMacrosDirectory();
54 * What is the reg key path to "vsmacros" for this version of Visual
57 virtual std::string
GetUserMacrosRegKeyBase();
60 virtual void AddPlatformDefinitions(cmMakefile
* mf
);
61 virtual void WriteSLNFile(std::ostream
& fout
,
62 cmLocalGenerator
* root
,
63 std::vector
<cmLocalGenerator
*>& generators
);
64 virtual void WriteSolutionConfigurations(std::ostream
& fout
);
65 virtual void WriteProject(std::ostream
& fout
,
66 const char* name
, const char* path
, cmTarget
&t
);
67 virtual void WriteProjectDepends(std::ostream
& fout
,
68 const char* name
, const char* path
, cmTarget
&t
);
69 virtual void WriteProjectConfigurations(std::ostream
& fout
,
71 bool partOfDefaultBuild
);
72 virtual void WriteExternalProject(std::ostream
& fout
,
75 const std::set
<cmStdString
>& depends
);
76 virtual void WriteSLNFooter(std::ostream
& fout
);
77 virtual void WriteSLNHeader(std::ostream
& fout
);
79 std::string ProjectConfigurationSectionName
;