cmGlobalXCode21Generator.cxx 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "cmGlobalXCode21Generator.h"
  14. #include "cmXCode21Object.h"
  15. //----------------------------------------------------------------------------
  16. cmGlobalXCode21Generator::cmGlobalXCode21Generator()
  17. {
  18. this->XcodeVersion = 21;
  19. }
  20. //----------------------------------------------------------------------------
  21. void
  22. cmGlobalXCode21Generator::WriteXCodePBXProj(std::ostream& fout,
  23. cmLocalGenerator* ,
  24. std::vector<cmLocalGenerator*>& )
  25. {
  26. fout << "// !$*UTF8*$!\n";
  27. fout << "{\n";
  28. cmXCode21Object::Indent(1, fout);
  29. fout << "archiveVersion = 1;\n";
  30. cmXCode21Object::Indent(1, fout);
  31. fout << "classes = {\n";
  32. cmXCode21Object::Indent(1, fout);
  33. fout << "};\n";
  34. cmXCode21Object::Indent(1, fout);
  35. fout << "objectVersion = 42;\n";
  36. cmXCode21Object::PrintList(this->XCodeObjects, fout);
  37. cmXCode21Object::Indent(1, fout);
  38. fout << "rootObject = " << this->RootObject->GetId()
  39. << " /* Project object */;\n";
  40. fout << "}\n";
  41. }