diff options
author | Brad King <brad.king@kitware.com> | 2009-07-02 14:13:46 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-07-02 14:13:46 -0400 |
commit | 6bd9d5ab8ac147bb4fd120317f478fe601e2266b (patch) | |
tree | 54002e6dc268663941f3c7fb0d3286e2143d469c /Source/cmGlobalXCodeGenerator.h | |
parent | f952ead8571d7ff7a4a903278fbe4646f2693202 (diff) | |
download | cmake-6bd9d5ab8ac147bb4fd120317f478fe601e2266b.tar.gz |
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.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h index 222740923b..e3fc2701ed 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. |