cmGlobalBorlandMakefileGenerator.cxx 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. }
  23. void cmGlobalBorlandMakefileGenerator::EnableLanguage(std::vector<std::string>const& l,
  24. cmMakefile *mf)
  25. {
  26. std::string outdir = this->CMakeInstance->GetStartOutputDirectory();
  27. mf->AddDefinition("BORLAND", "1");
  28. mf->AddDefinition("CMAKE_GENERATOR_CC", "bcc32");
  29. mf->AddDefinition("CMAKE_GENERATOR_CXX", "bcc32");
  30. this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf);
  31. }
  32. ///! Create a local generator appropriate to this Global Generator
  33. cmLocalGenerator *cmGlobalBorlandMakefileGenerator::CreateLocalGenerator()
  34. {
  35. cmLocalUnixMakefileGenerator3* lg = new cmLocalUnixMakefileGenerator3;
  36. lg->SetEchoNeedsQuote(false);
  37. lg->SetIncludeDirective("!include");
  38. lg->SetWindowsShell(true);
  39. lg->SetDefineWindowsNULL(true);
  40. lg->SetMakefileVariableSize(32);
  41. lg->SetPassMakeflags(true);
  42. lg->SetGlobalGenerator(this);
  43. lg->SetUnixCD(false);
  44. return lg;
  45. }
  46. //----------------------------------------------------------------------------
  47. void cmGlobalBorlandMakefileGenerator::GetDocumentation(cmDocumentationEntry& entry) const
  48. {
  49. entry.name = this->GetName();
  50. entry.brief = "Generates Borland makefiles.";
  51. entry.full = "";
  52. }