Imported Upstream version 2.8.11.2
[platform/upstream/cmake.git] / Source / cmGlobalVisualStudio9Generator.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 cmGlobalVisualStudio9Generator_h
13 #define cmGlobalVisualStudio9Generator_h
14
15 #include "cmGlobalVisualStudio8Generator.h"
16
17
18 /** \class cmGlobalVisualStudio9Generator
19  * \brief Write a Unix makefiles.
20  *
21  * cmGlobalVisualStudio9Generator manages UNIX build process for a tree
22  */
23 class cmGlobalVisualStudio9Generator :
24   public cmGlobalVisualStudio8Generator
25 {
26 public:
27   cmGlobalVisualStudio9Generator(const char* name,
28     const char* architectureId, const char* additionalPlatformDefinition);
29   static cmGlobalGeneratorFactory* NewFactory();
30
31   ///! create the correct local generator
32   virtual cmLocalGenerator *CreateLocalGenerator();
33
34   /**
35    * Try to determine system infomation such as shared library
36    * extension, pthreads, byte order etc.
37    */
38   virtual void EnableLanguage(std::vector<std::string>const& languages,
39                               cmMakefile *, bool optional);
40   virtual void WriteSLNHeader(std::ostream& fout);
41
42   /**
43    * Where does this version of Visual Studio look for macros for the
44    * current user? Returns the empty string if this version of Visual
45    * Studio does not implement support for VB macros.
46    */
47   virtual std::string GetUserMacrosDirectory();
48
49   /**
50    * What is the reg key path to "vsmacros" for this version of Visual
51    * Studio?
52    */
53   virtual std::string GetUserMacrosRegKeyBase();
54 protected:
55   virtual const char* GetIDEVersion() { return "9.0"; }
56 private:
57   class Factory;
58   friend class Factory;
59 };
60 #endif