diff options
author | Brad King <brad.king@kitware.com> | 2008-02-14 20:31:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-02-14 20:31:08 (GMT) |
commit | 67f8c0fd104fe6ec1b6c1df2ebce6fdb9b2c811f (patch) | |
tree | 6b51fadf24500dea382988525e51e9c0e6d449bb /Source/cmMakefileExecutableTargetGenerator.cxx | |
parent | 7b1c305d864977a524e21b7b837a8582eb487d7c (diff) | |
download | CMake-67f8c0fd104fe6ec1b6c1df2ebce6fdb9b2c811f.zip CMake-67f8c0fd104fe6ec1b6c1df2ebce6fdb9b2c811f.tar.gz CMake-67f8c0fd104fe6ec1b6c1df2ebce6fdb9b2c811f.tar.bz2 |
ENH: Allow multiple OS X applications bundles to be created in a single build directory. Converted Info.plist files to be generated directly instead of configured with make variables. The MACOSX_BUNDLE_* variables are now properties (and vars for compatibility).
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileExecutableTargetGenerator.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx index bb54f26..0114fa5 100644 --- a/Source/cmMakefileExecutableTargetGenerator.cxx +++ b/Source/cmMakefileExecutableTargetGenerator.cxx @@ -133,13 +133,6 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) outpath += "/"; // Make bundle directories - std::string f1 = - this->Makefile->GetModulesFile("MacOSXBundleInfo.plist.in"); - if ( f1.size() == 0 ) - { - cmSystemTools::Error("could not find Mac OSX bundle template file."); - } - std::vector<cmSourceFile*>::const_iterator sourceIt; for ( sourceIt = this->Target->GetSourceFiles().begin(); sourceIt != this->Target->GetSourceFiles().end(); @@ -162,11 +155,10 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) // Configure the Info.plist file. Note that it needs the executable name // to be set. - std::string f2 = macdir + "Info.plist"; - this->Makefile->AddDefinition("MACOSX_BUNDLE_EXECUTABLE_NAME", - targetName.c_str()); - this->Makefile->ConfigureFile(f1.c_str(), f2.c_str(), - false, false, false); + std::string plist = macdir + "Info.plist"; + this->LocalGenerator->GenerateAppleInfoPList(this->Target, + targetName.c_str(), + plist.c_str()); } #endif std::string outpathImp; |