mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
Xcode: Support new Icon Composer .icon resources
These are a new type of resource folder (treated as a file) similar to xcassets, supported in Xcode 26 to provide application icons.
This commit is contained in:
@@ -1202,6 +1202,9 @@ std::string GetDirectoryValueFromFileExtension(std::string const& dirExt)
|
||||
if (ext == "xcassets"_s) {
|
||||
return "folder.assetcatalog";
|
||||
}
|
||||
if (ext == "icon"_s) {
|
||||
return "folder.iconcomposer.icon";
|
||||
}
|
||||
return "folder";
|
||||
}
|
||||
|
||||
@@ -1276,6 +1279,9 @@ std::string GetSourcecodeValueFromFileExtension(
|
||||
} else if (ext == "xcconfig"_s) {
|
||||
keepLastKnownFileType = true;
|
||||
sourcecode = "text.xcconfig";
|
||||
} else if (ext == "icon"_s) {
|
||||
keepLastKnownFileType = true;
|
||||
sourcecode = "folder.iconcomposer.icon";
|
||||
}
|
||||
// else
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user