mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'non-xcode-framework-layout'
f6f03ed4Add test for OSX/iOS Framework directory structure (#15833)9f053763Fix iOS Framework directory structure (#15833)
This commit is contained in:
@@ -85,15 +85,24 @@ void cmOSXBundleGenerator::CreateFramework(
|
||||
|
||||
std::string frameworkVersion = this->GT->GetFrameworkVersion();
|
||||
|
||||
// Configure the Info.plist file into the Resources directory.
|
||||
this->MacContentFolders->insert("Resources");
|
||||
// Configure the Info.plist file
|
||||
std::string plist = newoutpath;
|
||||
plist += "/Resources/Info.plist";
|
||||
if (!this->Makefile->PlatformIsAppleIos())
|
||||
{
|
||||
// Put the Info.plist file into the Resources directory.
|
||||
this->MacContentFolders->insert("Resources");
|
||||
plist += "/Resources";
|
||||
}
|
||||
plist += "/Info.plist";
|
||||
std::string name = cmSystemTools::GetFilenameName(targetName);
|
||||
this->LocalGenerator->GenerateFrameworkInfoPList(this->GT,
|
||||
name,
|
||||
plist.c_str());
|
||||
|
||||
// Generate Versions directory only for MacOSX frameworks
|
||||
if (this->Makefile->PlatformIsAppleIos())
|
||||
return;
|
||||
|
||||
// TODO: Use the cmMakefileTargetGenerator::ExtraFiles vector to
|
||||
// drive rules to create these files at build time.
|
||||
std::string oldName;
|
||||
|
||||
Reference in New Issue
Block a user