summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-02 18:13:46 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-02 18:13:46 (GMT)
commit6bd9d5ab8ac147bb4fd120317f478fe601e2266b (patch)
tree54002e6dc268663941f3c7fb0d3286e2143d469c /Source/cmGlobalXCodeGenerator.h
parentf952ead8571d7ff7a4a903278fbe4646f2693202 (diff)
downloadCMake-6bd9d5ab8ac147bb4fd120317f478fe601e2266b.zip
CMake-6bd9d5ab8ac147bb4fd120317f478fe601e2266b.tar.gz
CMake-6bd9d5ab8ac147bb4fd120317f478fe601e2266b.tar.bz2
ENH: Simplify Xcode CreateBuildSettings method
The cmGlobalXCodeGenerator::CreateBuildSettings had the three arguments productName, productType, and fileType that returned information used by only one of the call sites. This change refactors that information into separate methods named accordingly.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.h')
-rw-r--r--Source/cmGlobalXCodeGenerator.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h
index 2227409..e3fc270 100644
--- a/Source/cmGlobalXCodeGenerator.h
+++ b/Source/cmGlobalXCodeGenerator.h
@@ -128,6 +128,8 @@ private:
cmXCodeObject* CreateObjectReference(cmXCodeObject*);
cmXCodeObject* CreateXCodeTarget(cmTarget& target,
cmXCodeObject* buildPhases);
+ const char* GetTargetFileType(cmTarget& cmtarget);
+ const char* GetTargetProductType(cmTarget& cmtarget);
void AddConfigurations(cmXCodeObject* target,
cmTarget& cmtarget);
void AppendOrAddBuildSetting(cmXCodeObject* settings, const char* attr,
@@ -138,9 +140,6 @@ private:
void AddDependAndLinkInformation(cmXCodeObject* target);
void CreateBuildSettings(cmTarget& target,
cmXCodeObject* buildSettings,
- std::string& fileType,
- std::string& productType,
- std::string& projectName,
const char* buildType);
std::string ExtractFlag(const char* flag, std::string& flags);
// delete all objects in the this->XCodeObjects vector.