diff options
author | Nicolas Despres <nicolas.despres@gmail.com> | 2012-07-16 21:03:40 (GMT) |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2012-07-17 12:03:12 (GMT) |
commit | c3988ee871c99e31ad4d10e9033d89da902d5694 (patch) | |
tree | 343f99d1fc0efa4e37d26c071da8b68d26839f8a /Source/cmOSXBundleGenerator.cxx | |
parent | f8e0a5109f104e894f450049a6c97f53bd378dae (diff) | |
download | CMake-c3988ee871c99e31ad4d10e9033d89da902d5694.zip CMake-c3988ee871c99e31ad4d10e9033d89da902d5694.tar.gz CMake-c3988ee871c99e31ad4d10e9033d89da902d5694.tar.bz2 |
Re-factor OS X content generator start up.
Diffstat (limited to 'Source/cmOSXBundleGenerator.cxx')
-rw-r--r-- | Source/cmOSXBundleGenerator.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/cmOSXBundleGenerator.cxx b/Source/cmOSXBundleGenerator.cxx index c5a8d5f..7d8df59 100644 --- a/Source/cmOSXBundleGenerator.cxx +++ b/Source/cmOSXBundleGenerator.cxx @@ -214,3 +214,23 @@ GenerateMacOSXContentStatements(std::vector<cmSourceFile*> const& sources, } } } + +//---------------------------------------------------------------------------- +std::string +cmOSXBundleGenerator::InitMacOSXContentDirectory(const char* pkgloc) +{ + // Construct the full path to the content subdirectory. + std::string macdir = this->MacContentDirectory; + macdir += pkgloc; + cmSystemTools::MakeDirectory(macdir.c_str()); + + // Record use of this content location. Only the first level + // directory is needed. + { + std::string loc = pkgloc; + loc = loc.substr(0, loc.find('/')); + this->MacContentFolders->insert(loc); + } + + return macdir; +} |