diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-01-25 20:26:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-01-25 20:26:57 (GMT) |
commit | 96daa417cb8ee1dffd3f5e17e7b3c76df31d5b73 (patch) | |
tree | 4fd722a406a18346ac4bb90e9fb66b1e7503357c /Source/cmGlobalXCodeGenerator.cxx | |
parent | e07af61e51618d60a32aedb268fdc0854624f0dd (diff) | |
download | CMake-96daa417cb8ee1dffd3f5e17e7b3c76df31d5b73.zip CMake-96daa417cb8ee1dffd3f5e17e7b3c76df31d5b73.tar.gz CMake-96daa417cb8ee1dffd3f5e17e7b3c76df31d5b73.tar.bz2 |
ENH: add initial non-working XCode stuff
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 0031243..2625f0b 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -86,6 +86,14 @@ cmXCodeObject* cmGlobalXCodeGenerator::CreateObject(cmXCodeObject::PBXType ptype return obj; } +cmXCodeObject* cmGlobalXCodeGenerator::CreateString(const char* s) +{ + cmXCodeObject* obj = new cmXCodeObject(cmXCodeObject::None, cmXCodeObject::STRING); + m_XCodeObjects.push_back(obj); + obj->SetString(s); + return obj; +} + //---------------------------------------------------------------------------- void cmGlobalXCodeGenerator::CreateXCodeObjects(cmLocalGenerator* root, std::vector<cmLocalGenerator*>& @@ -94,17 +102,17 @@ void cmGlobalXCodeGenerator::CreateXCodeObjects(cmLocalGenerator* root, delete m_RootObject; this->ClearXCodeObjects(); cmXCodeObject* group = this->CreateObject(cmXCodeObject::None, cmXCodeObject::ATTRIBUTE_GROUP); - group->AddAttribute("COPY_PHASE_STRIP", "NO"); + group->AddAttribute("COPY_PHASE_STRIP", this->CreateString("NO")); cmXCodeObject* developBuildStyle = this->CreateObject(cmXCodeObject::PBXBuildStyle, cmXCodeObject::OBJECT); - developBuildStyle->AddAttribute("name", "Development"); + developBuildStyle->AddAttribute("name", this->CreateString("Development")); developBuildStyle->AddAttribute("buildSettings", group); group = this->CreateObject(cmXCodeObject::None, cmXCodeObject::ATTRIBUTE_GROUP); - group->AddAttribute("COPY_PHASE_STRIP", "YES"); + group->AddAttribute("COPY_PHASE_STRIP", this->CreateString("YES")); cmXCodeObject* deployBuildStyle = this->CreateObject(cmXCodeObject::PBXBuildStyle, cmXCodeObject::OBJECT); - deployBuildStyle->AddAttribute("name", "Deployment"); + deployBuildStyle->AddAttribute("name", this->CreateString("Deployment")); deployBuildStyle->AddAttribute("buildSettings", group); cmXCodeObject* listObjs = this->CreateObject(cmXCodeObject::None, @@ -117,7 +125,7 @@ void cmGlobalXCodeGenerator::CreateXCodeObjects(cmLocalGenerator* root, group = this->CreateObject(cmXCodeObject::None, cmXCodeObject::ATTRIBUTE_GROUP); m_RootObject->AddAttribute("buildSettings", group); m_RootObject->AddAttribute("buildSyles", listObjs); - m_RootObject->AddAttribute("hasScannedForEncodings", "0"); + m_RootObject->AddAttribute("hasScannedForEncodings", this->CreateString("0")); } |