cmGlobalWatcomWMakeGenerator.cxx 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmGlobalWatcomWMakeGenerator.h"
  11. #include "cmLocalUnixMakefileGenerator3.h"
  12. #include "cmMakefile.h"
  13. cmGlobalWatcomWMakeGenerator::cmGlobalWatcomWMakeGenerator()
  14. {
  15. this->FindMakeProgramFile = "CMakeFindWMake.cmake";
  16. #ifdef _WIN32
  17. this->ForceUnixPaths = false;
  18. #endif
  19. this->ToolSupportsColor = true;
  20. this->NeedSymbolicMark = true;
  21. this->EmptyRuleHackCommand = "@cd .";
  22. #ifdef _WIN32
  23. this->WindowsShell = true;
  24. #endif
  25. this->WatcomWMake = true;
  26. this->IncludeDirective = "!include";
  27. this->DefineWindowsNULL = true;
  28. this->UnixCD = false;
  29. this->MakeSilentFlag = "-h";
  30. }
  31. void cmGlobalWatcomWMakeGenerator
  32. ::EnableLanguage(std::vector<std::string>const& l,
  33. cmMakefile *mf,
  34. bool optional)
  35. {
  36. // pick a default
  37. mf->AddDefinition("WATCOM", "1");
  38. mf->AddDefinition("CMAKE_QUOTE_INCLUDE_PATHS", "1");
  39. mf->AddDefinition("CMAKE_MANGLE_OBJECT_FILE_NAMES", "1");
  40. mf->AddDefinition("CMAKE_MAKE_LINE_CONTINUE", "&");
  41. mf->AddDefinition("CMAKE_MAKE_SYMBOLIC_RULE", ".SYMBOLIC");
  42. mf->AddDefinition("CMAKE_GENERATOR_CC", "wcl386");
  43. mf->AddDefinition("CMAKE_GENERATOR_CXX", "wcl386");
  44. this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf, optional);
  45. }
  46. //----------------------------------------------------------------------------
  47. void cmGlobalWatcomWMakeGenerator
  48. ::GetDocumentation(cmDocumentationEntry& entry)
  49. {
  50. entry.Name = cmGlobalWatcomWMakeGenerator::GetActualName();
  51. entry.Brief = "Generates Watcom WMake makefiles.";
  52. }