MCPcopy Create free account
hub / github.com/Kitware/CMake / GetCFBundleDirectory

Method GetCFBundleDirectory

Source/cmGeneratorTarget.cxx:1716–1740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1714}
1715
1716std::string cmGeneratorTarget::GetCFBundleDirectory(
1717 std::string const& config, BundleDirectoryLevel level) const
1718{
1719 std::string fpath = cmStrCat(
1720 this->GetOutputName(config, cmStateEnums::RuntimeBinaryArtifact), '.');
1721 std::string ext;
1722 if (cmValue p = this->GetProperty("BUNDLE_EXTENSION")) {
1723 ext = *p;
1724 } else {
1725 if (this->IsXCTestOnApple()) {
1726 ext = "xctest";
1727 } else {
1728 ext = "bundle";
1729 }
1730 }
1731 fpath += ext;
1732 if (shouldAddContentLevel(level) &&
1733 !this->Makefile->PlatformIsAppleEmbedded()) {
1734 fpath += "/Contents";
1735 if (shouldAddFullLevel(level)) {
1736 fpath += "/MacOS";
1737 }
1738 }
1739 return fpath;
1740}
1741
1742std::string cmGeneratorTarget::GetFrameworkDirectory(
1743 std::string const& config, BundleDirectoryLevel level) const

Callers 4

BuildBundleDirectoryMethod · 0.95
CreateCFBundleMethod · 0.80
CreateMethod · 0.80

Calls 7

GetOutputNameMethod · 0.95
GetPropertyMethod · 0.95
IsXCTestOnAppleMethod · 0.95
shouldAddContentLevelFunction · 0.85
shouldAddFullLevelFunction · 0.85
cmStrCatFunction · 0.70

Tested by

no test coverage detected