packaging: Initial packaging
[platform/upstream/cmake.git] / Source / cmGlobalMinGWMakefileGenerator.cxx
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 #include "cmGlobalMinGWMakefileGenerator.h"
13 #include "cmLocalUnixMakefileGenerator3.h"
14 #include "cmMakefile.h"
15
16 cmGlobalMinGWMakefileGenerator::cmGlobalMinGWMakefileGenerator()
17 {
18   this->FindMakeProgramFile = "CMakeMinGWFindMake.cmake";
19   this->ForceUnixPaths = true;
20   this->ToolSupportsColor = true;
21   this->UseLinkScript = true;
22 }
23
24 void cmGlobalMinGWMakefileGenerator
25 ::EnableLanguage(std::vector<std::string>const& l,
26                  cmMakefile *mf,
27                  bool optional)
28 {
29   this->EnableMinGWLanguage(mf);
30   this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf, optional);
31 }
32
33 ///! Create a local generator appropriate to this Global Generator
34 cmLocalGenerator *cmGlobalMinGWMakefileGenerator::CreateLocalGenerator()
35 {
36   cmLocalUnixMakefileGenerator3* lg = new cmLocalUnixMakefileGenerator3;
37   lg->SetWindowsShell(true);
38   lg->SetGlobalGenerator(this);
39   lg->SetIgnoreLibPrefix(true);
40   lg->SetPassMakeflags(false);
41   lg->SetUnixCD(true);
42   lg->SetMinGWMake(true);
43   return lg;
44 }
45
46 //----------------------------------------------------------------------------
47 void cmGlobalMinGWMakefileGenerator
48 ::GetDocumentation(cmDocumentationEntry& entry)
49 {
50   entry.Name = cmGlobalMinGWMakefileGenerator::GetActualName();
51   entry.Brief = "Generates a make file for use with mingw32-make.";
52   entry.Full = "The makefiles generated use cmd.exe as the shell.  "
53     "They do not require msys or a unix shell.";
54 }