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

Function GetDirectoryValueFromFileExtension

Source/cmGlobalXCodeGenerator.cxx:1217–1233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1215}
1216
1217std::string GetDirectoryValueFromFileExtension(std::string const& dirExt)
1218{
1219 std::string ext = cmSystemTools::LowerCase(dirExt);
1220 if (ext == "framework"_s) {
1221 return "wrapper.framework";
1222 }
1223 if (ext == "xcframework"_s) {
1224 return "wrapper.xcframework";
1225 }
1226 if (ext == "xcassets"_s) {
1227 return "folder.assetcatalog";
1228 }
1229 if (ext == "icon"_s) {
1230 return "folder.iconcomposer.icon";
1231 }
1232 return "folder";
1233}
1234
1235std::string GetSourcecodeValueFromFileExtension(
1236 std::string const& _ext, std::string const& lang,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…