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

Method GetAppBundleDirectory

Source/cmGeneratorTarget.cxx:1687–1702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1685}
1686
1687std::string cmGeneratorTarget::GetAppBundleDirectory(
1688 std::string const& config, BundleDirectoryLevel level) const
1689{
1690 std::string fpath = cmStrCat(
1691 this->GetFullName(config, cmStateEnums::RuntimeBinaryArtifact), '.');
1692 cmValue ext = this->GetProperty("BUNDLE_EXTENSION");
1693 fpath += (ext ? *ext : "app");
1694 if (shouldAddContentLevel(level) &&
1695 !this->Makefile->PlatformIsAppleEmbedded()) {
1696 fpath += "/Contents";
1697 if (shouldAddFullLevel(level)) {
1698 fpath += "/MacOS";
1699 }
1700 }
1701 return fpath;
1702}
1703
1704bool cmGeneratorTarget::IsBundleOnApple() const
1705{

Callers 3

BuildBundleDirectoryMethod · 0.95
CreateAppBundleMethod · 0.80
CreateMethod · 0.80

Calls 6

GetFullNameMethod · 0.95
GetPropertyMethod · 0.95
shouldAddContentLevelFunction · 0.85
shouldAddFullLevelFunction · 0.85
cmStrCatFunction · 0.70

Tested by

no test coverage detected