summaryrefslogtreecommitdiffstats
path: root/Source/cmOSXBundleGenerator.cxx
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2012-07-16 15:34:22 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-07-17 12:03:10 (GMT)
commit5d885db416a4cec236ba6422868dc3db3d766bc4 (patch)
treed7d30b2df4e3c706c7598407b96c0abbdcba36ee /Source/cmOSXBundleGenerator.cxx
parent3b2a01e80ef0faf626afd4c5031395c00e1c9ecd (diff)
downloadCMake-5d885db416a4cec236ba6422868dc3db3d766bc4.zip
CMake-5d885db416a4cec236ba6422868dc3db3d766bc4.tar.gz
CMake-5d885db416a4cec236ba6422868dc3db3d766bc4.tar.bz2
Re-factor bundle content copying rules generation.
Diffstat (limited to 'Source/cmOSXBundleGenerator.cxx')
-rw-r--r--Source/cmOSXBundleGenerator.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/cmOSXBundleGenerator.cxx b/Source/cmOSXBundleGenerator.cxx
index b3210eb..8788d42 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);
+ }
+ }
+}