浏览代码

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.
Darryl Pogue 3 周之前
父节点
当前提交
e97fdf7d9a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Source/cmGlobalXCodeGenerator.cxx

+ 6 - 0
Source/cmGlobalXCodeGenerator.cxx

@@ -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
   //  {