| 1685 | } |
| 1686 | |
| 1687 | std::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 | |
| 1704 | bool cmGeneratorTarget::IsBundleOnApple() const |
| 1705 | { |
no test coverage detected