1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
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"
16 cmGlobalMinGWMakefileGenerator::cmGlobalMinGWMakefileGenerator()
18 this->FindMakeProgramFile = "CMakeMinGWFindMake.cmake";
19 this->ForceUnixPaths = true;
20 this->ToolSupportsColor = true;
21 this->UseLinkScript = true;
24 void cmGlobalMinGWMakefileGenerator
25 ::EnableLanguage(std::vector<std::string>const& l,
29 this->EnableMinGWLanguage(mf);
30 this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf, optional);
33 ///! Create a local generator appropriate to this Global Generator
34 cmLocalGenerator *cmGlobalMinGWMakefileGenerator::CreateLocalGenerator()
36 cmLocalUnixMakefileGenerator3* lg = new cmLocalUnixMakefileGenerator3;
37 lg->SetWindowsShell(true);
38 lg->SetGlobalGenerator(this);
39 lg->SetIgnoreLibPrefix(true);
40 lg->SetPassMakeflags(false);
42 lg->SetMinGWMake(true);
46 //----------------------------------------------------------------------------
47 void cmGlobalMinGWMakefileGenerator
48 ::GetDocumentation(cmDocumentationEntry& entry)
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.";