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