cmGlobalBorlandMakefileGenerator.cxx 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #include "cmGlobalBorlandMakefileGenerator.h"
  14. #include "cmLocalUnixMakefileGenerator3.h"
  15. #include "cmMakefile.h"
  16. #include "cmake.h"
  17. cmGlobalBorlandMakefileGenerator::cmGlobalBorlandMakefileGenerator()
  18. {
  19. this->EmptyRuleHackDepends = "NUL";
  20. this->FindMakeProgramFile = "CMakeBorlandFindMake.cmake";
  21. this->ForceUnixPaths = false;
  22. this->ToolSupportsColorVT100 = false;
  23. }
  24. void cmGlobalBorlandMakefileGenerator::EnableLanguage(std::vector<std::string>const& l,
  25. cmMakefile *mf)
  26. {
  27. std::string outdir = this->CMakeInstance->GetStartOutputDirectory();
  28. mf->AddDefinition("BORLAND", "1");
  29. mf->AddDefinition("CMAKE_GENERATOR_CC", "bcc32");
  30. mf->AddDefinition("CMAKE_GENERATOR_CXX", "bcc32");
  31. this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf);
  32. }
  33. ///! Create a local generator appropriate to this Global Generator
  34. cmLocalGenerator *cmGlobalBorlandMakefileGenerator::CreateLocalGenerator()
  35. {
  36. cmLocalUnixMakefileGenerator3* lg = new cmLocalUnixMakefileGenerator3;
  37. lg->SetEchoNeedsQuote(false);
  38. lg->SetIncludeDirective("!include");
  39. lg->SetWindowsShell(true);
  40. lg->SetDefineWindowsNULL(true);
  41. lg->SetMakefileVariableSize(32);
  42. lg->SetPassMakeflags(true);
  43. lg->SetGlobalGenerator(this);
  44. lg->SetUnixCD(false);
  45. return lg;
  46. }
  47. //----------------------------------------------------------------------------
  48. void cmGlobalBorlandMakefileGenerator::GetDocumentation(cmDocumentationEntry& entry) const
  49. {
  50. entry.name = this->GetName();
  51. entry.brief = "Generates Borland makefiles.";
  52. entry.full = "";
  53. }