Imported Upstream version 2.8.9
[platform/upstream/cmake.git] / Source / cmGlobalVisualStudio71Generator.h
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #ifndef cmGlobalVisualStudio71Generator_h
13 #define cmGlobalVisualStudio71Generator_h
14
15 #include "cmGlobalVisualStudio7Generator.h"
16
17
18 /** \class cmGlobalVisualStudio71Generator
19  * \brief Write a Unix makefiles.
20  *
21  * cmGlobalVisualStudio71Generator manages UNIX build process for a tree
22  */
23 class cmGlobalVisualStudio71Generator : public cmGlobalVisualStudio7Generator
24 {
25 public:
26   cmGlobalVisualStudio71Generator();
27   static cmGlobalGenerator* New() 
28     { return new cmGlobalVisualStudio71Generator; }
29   
30   ///! Get the name for the generator.
31   virtual const char* GetName() const {
32     return cmGlobalVisualStudio71Generator::GetActualName();}
33   static const char* GetActualName() {return "Visual Studio 7 .NET 2003";}
34
35   /** Get the documentation entry for this generator.  */
36   virtual void GetDocumentation(cmDocumentationEntry& entry) const;
37   
38   ///! Create a local generator appropriate to this Global Generator
39   virtual cmLocalGenerator *CreateLocalGenerator();
40
41   /**
42    * Where does this version of Visual Studio look for macros for the
43    * current user? Returns the empty string if this version of Visual
44    * Studio does not implement support for VB macros.
45    */
46   virtual std::string GetUserMacrosDirectory();
47
48   /**
49    * What is the reg key path to "vsmacros" for this version of Visual
50    * Studio?
51    */
52   virtual std::string GetUserMacrosRegKeyBase();
53
54 protected:
55   virtual const char* GetIDEVersion() { return "7.1"; }
56   virtual void AddPlatformDefinitions(cmMakefile* mf);
57   virtual void WriteSLNFile(std::ostream& fout, 
58                             cmLocalGenerator* root,
59                             std::vector<cmLocalGenerator*>& generators);
60   virtual void WriteSolutionConfigurations(std::ostream& fout);
61   virtual void WriteProject(std::ostream& fout, 
62                             const char* name, const char* path, cmTarget &t);
63   virtual void WriteProjectDepends(std::ostream& fout, 
64                            const char* name, const char* path, cmTarget &t);
65   virtual void WriteProjectConfigurations(std::ostream& fout,
66                                           const char* name,
67                                           bool partOfDefaultBuild,
68                                           const char* platformMapping = NULL);
69   virtual void WriteExternalProject(std::ostream& fout,
70                                     const char* name,
71                                     const char* path,
72                                     const char* typeGuid,
73                                     const std::set<cmStdString>& depends);
74   virtual void WriteSLNFooter(std::ostream& fout);
75   virtual void WriteSLNHeader(std::ostream& fout);
76
77   std::string ProjectConfigurationSectionName;
78 };
79 #endif