Imported Upstream version 2.8.9
[platform/upstream/cmake.git] / Source / cmGlobalMinGWMakefileGenerator.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 cmGlobalMinGWMakefileGenerator_h
13 #define cmGlobalMinGWMakefileGenerator_h
14
15 #include "cmGlobalUnixMakefileGenerator3.h"
16
17 /** \class cmGlobalMinGWMakefileGenerator
18  * \brief Write a NMake makefiles.
19  *
20  * cmGlobalMinGWMakefileGenerator manages nmake build process for a tree
21  */
22 class cmGlobalMinGWMakefileGenerator : public cmGlobalUnixMakefileGenerator3
23 {
24 public:
25   cmGlobalMinGWMakefileGenerator();
26   static cmGlobalGenerator* New() { 
27     return new cmGlobalMinGWMakefileGenerator; }
28   ///! Get the name for the generator.
29   virtual const char* GetName() const {
30     return cmGlobalMinGWMakefileGenerator::GetActualName();}
31   static const char* GetActualName() {return "MinGW Makefiles";}
32
33   /** Get the documentation entry for this generator.  */
34   virtual void GetDocumentation(cmDocumentationEntry& entry) const;
35   
36   ///! Create a local generator appropriate to this Global Generator
37   virtual cmLocalGenerator *CreateLocalGenerator();
38
39   /**
40    * Try to determine system infomation such as shared library
41    * extension, pthreads, byte order etc.  
42    */
43   virtual void EnableLanguage(std::vector<std::string>const& languages,
44                               cmMakefile *, bool optional);
45 };
46
47 #endif