summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCode21Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-09-02 20:29:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-09-02 20:29:32 (GMT)
commit6b4c142c7dfe60e7e9b5cccfc4e44ae808b54b75 (patch)
treeb25e19e52ff57671a63be2fb5f76e0dc87dd2995 /Source/cmGlobalXCode21Generator.cxx
parent389333967b157e40b6846c964699a13ab5ba6c99 (diff)
downloadCMake-6b4c142c7dfe60e7e9b5cccfc4e44ae808b54b75.zip
CMake-6b4c142c7dfe60e7e9b5cccfc4e44ae808b54b75.tar.gz
CMake-6b4c142c7dfe60e7e9b5cccfc4e44ae808b54b75.tar.bz2
ENH: add real support for Xcode21
Diffstat (limited to 'Source/cmGlobalXCode21Generator.cxx')
-rw-r--r--Source/cmGlobalXCode21Generator.cxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/Source/cmGlobalXCode21Generator.cxx b/Source/cmGlobalXCode21Generator.cxx
index d8b02f0..7948e06 100644
--- a/Source/cmGlobalXCode21Generator.cxx
+++ b/Source/cmGlobalXCode21Generator.cxx
@@ -15,9 +15,31 @@
=========================================================================*/
#include "cmGlobalXCode21Generator.h"
+#include "cmXCode21Object.h"
cmGlobalXCode21Generator::cmGlobalXCode21Generator()
{
this->m_XcodeVersion = 21;
}
+//----------------------------------------------------------------------------
+void
+cmGlobalXCode21Generator::WriteXCodePBXProj(std::ostream& fout,
+ cmLocalGenerator* ,
+ std::vector<cmLocalGenerator*>& )
+{
+ fout << "// !$*UTF8*$!\n";
+ fout << "{\n";
+ cmXCode21Object::Indent(1, fout);
+ fout << "archiveVersion = 1;\n";
+ cmXCode21Object::Indent(1, fout);
+ fout << "classes = {\n";
+ cmXCode21Object::Indent(1, fout);
+ fout << "};\n";
+ cmXCode21Object::Indent(1, fout);
+ fout << "objectVersion = 42;\n";
+ cmXCode21Object::PrintList(m_XCodeObjects, fout);
+ cmXCode21Object::Indent(1, fout);
+ fout << "rootObject = " << m_RootObject->GetId() << " /* Project object */;\n";
+ fout << "}\n";
+}