diff options
author | Nicolas Despres <nicolas.despres@gmail.com> | 2012-07-16 17:34:22 +0200 |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2012-07-17 14:03:10 +0200 |
commit | 5d885db416a4cec236ba6422868dc3db3d766bc4 (patch) | |
tree | d7d30b2df4e3c706c7598407b96c0abbdcba36ee /Source/cmOSXBundleGenerator.cxx | |
parent | 3b2a01e80ef0faf626afd4c5031395c00e1c9ecd (diff) | |
download | cmake-5d885db416a4cec236ba6422868dc3db3d766bc4.tar.gz |
Re-factor bundle content copying rules generation.
Diffstat (limited to 'Source/cmOSXBundleGenerator.cxx')
-rw-r--r-- | Source/cmOSXBundleGenerator.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/cmOSXBundleGenerator.cxx b/Source/cmOSXBundleGenerator.cxx index b3210eb582..8788d42e04 100644 --- a/Source/cmOSXBundleGenerator.cxx +++ b/Source/cmOSXBundleGenerator.cxx @@ -200,3 +200,21 @@ void cmOSXBundleGenerator::CreateCFBundle(std::string& targetName, plist.c_str()); this->Makefile->AddCMakeOutputFile(plist.c_str()); } + +//---------------------------------------------------------------------------- +void +cmOSXBundleGenerator:: +GenerateMacOSXContentStatements(std::vector<cmSourceFile*> const& sources, + MacOSXContentGeneratorType* generator) +{ + for(std::vector<cmSourceFile*>::const_iterator + si = sources.begin(); si != sources.end(); ++si) + { + cmTarget::SourceFileFlags tsFlags = + this->Target->GetTargetSourceFileFlags(*si); + if(tsFlags.Type != cmTarget::SourceFileTypeNormal) + { + (*generator)(**si, tsFlags.MacFolder); + } + } +} |