diff options
author | Brad King <brad.king@kitware.com> | 2009-09-19 16:00:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-09-19 16:00:09 (GMT) |
commit | d4cfb77ffe816f71d456dc70ab18efb7eb19d82d (patch) | |
tree | 87908f67a85c448de02380c7078db623084ead8a /Source/cmGlobalXCode21Generator.cxx | |
parent | 180c60a86f5c44085a1a66865bfc8b9479c72e8a (diff) | |
download | CMake-d4cfb77ffe816f71d456dc70ab18efb7eb19d82d.zip CMake-d4cfb77ffe816f71d456dc70ab18efb7eb19d82d.tar.gz CMake-d4cfb77ffe816f71d456dc70ab18efb7eb19d82d.tar.bz2 |
Remove cmGlobalXCode21Generator subclass
This subclass of cmGlobalXCodeGenerator only provided two virtual method
overrides, and it made construction of the Xcode generator instance
complicated. This commit removes it and replaces the virtual methods
with tests of the Xcode version. The change removes duplicate code.
Diffstat (limited to 'Source/cmGlobalXCode21Generator.cxx')
-rw-r--r-- | Source/cmGlobalXCode21Generator.cxx | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/Source/cmGlobalXCode21Generator.cxx b/Source/cmGlobalXCode21Generator.cxx deleted file mode 100644 index 3d55ca1..0000000 --- a/Source/cmGlobalXCode21Generator.cxx +++ /dev/null @@ -1,52 +0,0 @@ -/*========================================================================= - - Program: CMake - Cross-Platform Makefile Generator - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - - Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. - See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notices for more information. - -=========================================================================*/ -#include "cmGlobalXCode21Generator.h" -#include "cmXCode21Object.h" - -//---------------------------------------------------------------------------- -cmGlobalXCode21Generator::cmGlobalXCode21Generator() -{ - this->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); - if (this->XcodeVersion >= 31) - fout << "objectVersion = 45;\n"; - else if (this->XcodeVersion >= 30) - fout << "objectVersion = 44;\n"; - else - fout << "objectVersion = 42;\n"; - cmXCode21Object::PrintList(this->XCodeObjects, fout); - cmXCode21Object::Indent(1, fout); - fout << "rootObject = " << this->RootObject->GetId() - << " /* Project object */;\n"; - fout << "}\n"; -} |