summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-29 21:34:52 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-29 21:34:52 (GMT)
commitc2da47550734575dc5fe17ce1d02e8ca37e09f4b (patch)
tree08f76ea999c8b2bfb93ec3ebade2ee45b90412a3 /Source/cmGlobalXCodeGenerator.cxx
parentdfbee4a92a509d0befaf6d0374bf02a0de057019 (diff)
downloadCMake-c2da47550734575dc5fe17ce1d02e8ca37e09f4b.zip
CMake-c2da47550734575dc5fe17ce1d02e8ca37e09f4b.tar.gz
CMake-c2da47550734575dc5fe17ce1d02e8ca37e09f4b.tar.bz2
ENH: Use PBXResourcesBuildPhase for resrources
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx39
1 files changed, 24 insertions, 15 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index e199857..3d5dce7 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -693,23 +693,32 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen,
mapOfVectorOfSourceFiles::iterator mit;
for ( mit = bundleFiles.begin(); mit != bundleFiles.end(); ++ mit )
{
- cmXCodeObject* copyFilesBuildPhase
- = this->CreateObject(cmXCodeObject::PBXCopyFilesBuildPhase);
- buildPhases->AddObject(copyFilesBuildPhase);
- copyFilesBuildPhase->SetComment("Copy files");
- copyFilesBuildPhase->AddAttribute("buildActionMask",
- this->CreateString("2147483647"));
- copyFilesBuildPhase->AddAttribute("dstSubfolderSpec",
- this->CreateString("6"));
- copyFilesBuildPhase->AddAttribute("runOnlyForDeploymentPostprocessing",
- this->CreateString("0"));
- cmOStringStream ostr;
- if ( mit->first != "MacOS" )
+ cmXCodeObject* copyFilesBuildPhase;
+ if ( mit->first == "Resources" )
{
- ostr << "../" << mit->first.c_str();
+ copyFilesBuildPhase
+ = this->CreateObject(cmXCodeObject::PBXResourcesBuildPhase);
}
- copyFilesBuildPhase->AddAttribute("dstPath",
- this->CreateString(ostr.str().c_str()));
+ else
+ {
+ copyFilesBuildPhase
+ = this->CreateObject(cmXCodeObject::PBXCopyFilesBuildPhase);
+ copyFilesBuildPhase->SetComment("Copy files");
+ copyFilesBuildPhase->AddAttribute("buildActionMask",
+ this->CreateString("2147483647"));
+ copyFilesBuildPhase->AddAttribute("dstSubfolderSpec",
+ this->CreateString("6"));
+ cmOStringStream ostr;
+ if ( mit->first != "MacOS" )
+ {
+ ostr << "../" << mit->first.c_str();
+ }
+ copyFilesBuildPhase->AddAttribute("dstPath",
+ this->CreateString(ostr.str().c_str()));
+ }
+ copyFilesBuildPhase->AddAttribute("runOnlyForDeploymentPostprocessing",
+ this->CreateString("0"));
+ buildPhases->AddObject(copyFilesBuildPhase);
buildFiles = this->CreateObject(cmXCodeObject::OBJECT_LIST);
copyFilesBuildPhase->AddAttribute("files", buildFiles);
std::vector<cmSourceFile*>::iterator sfIt;