cmGlobalBorlandMakefileGenerator.cxx 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 "cmLocalUnixMakefileGenerator.h"
  15. #include "cmMakefile.h"
  16. #include "cmake.h"
  17. cmGlobalBorlandMakefileGenerator::cmGlobalBorlandMakefileGenerator()
  18. {
  19. m_FindMakeProgramFile = "CMakeBorlandFindMake.cmake";
  20. m_ForceUnixPaths = false;
  21. }
  22. void cmGlobalBorlandMakefileGenerator::EnableLanguage(std::vector<std::string>const& l,
  23. cmMakefile *mf)
  24. {
  25. std::string outdir = m_CMakeInstance->GetStartOutputDirectory();
  26. mf->AddDefinition("BORLAND", "1");
  27. mf->AddDefinition("CMAKE_GENERATOR_CC", "bcc32");
  28. mf->AddDefinition("CMAKE_GENERATOR_CXX", "bcc32");
  29. this->cmGlobalUnixMakefileGenerator::EnableLanguage(l, mf);
  30. }
  31. ///! Create a local generator appropriate to this Global Generator
  32. cmLocalGenerator *cmGlobalBorlandMakefileGenerator::CreateLocalGenerator()
  33. {
  34. cmLocalUnixMakefileGenerator *lg = new cmLocalUnixMakefileGenerator;
  35. lg->SetIncludeDirective("!include");
  36. lg->SetWindowsShell(true);
  37. lg->SetMakefileVariableSize(32);
  38. lg->SetPassMakeflags(true);
  39. lg->SetGlobalGenerator(this);
  40. return lg;
  41. }
  42. //----------------------------------------------------------------------------
  43. void cmGlobalBorlandMakefileGenerator::GetDocumentation(cmDocumentationEntry& entry) const
  44. {
  45. entry.name = this->GetName();
  46. entry.brief = "Generates Borland makefiles.";
  47. entry.full = "";
  48. }