Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmGlobalXCode21Generator.cxx
blobe0e7f258f65ff15a7bb9ecb855aaa77c4676c62b
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmGlobalXCode21Generator.cxx,v $
5 Language: C++
6 Date: $Date: 2007/08/14 15:45:14 $
7 Version: $Revision: 1.7 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #include "cmGlobalXCode21Generator.h"
18 #include "cmXCode21Object.h"
20 //----------------------------------------------------------------------------
21 cmGlobalXCode21Generator::cmGlobalXCode21Generator()
23 this->XcodeVersion = 21;
26 //----------------------------------------------------------------------------
27 void
28 cmGlobalXCode21Generator::WriteXCodePBXProj(std::ostream& fout,
29 cmLocalGenerator* ,
30 std::vector<cmLocalGenerator*>& )
32 fout << "// !$*UTF8*$!\n";
33 fout << "{\n";
34 cmXCode21Object::Indent(1, fout);
35 fout << "archiveVersion = 1;\n";
36 cmXCode21Object::Indent(1, fout);
37 fout << "classes = {\n";
38 cmXCode21Object::Indent(1, fout);
39 fout << "};\n";
40 cmXCode21Object::Indent(1, fout);
41 fout << "objectVersion = 42;\n";
42 cmXCode21Object::PrintList(this->XCodeObjects, fout);
43 cmXCode21Object::Indent(1, fout);
44 fout << "rootObject = " << this->RootObject->GetId()
45 << " /* Project object */;\n";
46 fout << "}\n";