Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Sources/SWBApplePlatform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ add_library(SWBApplePlatform
SwiftBuild_Bundle(MODULE SWBApplePlatform FILES
Specs/AppIntentsMetadata.xcspec
Specs/AppIntentsNLTraining.xcspec
Specs/AppleFileTypes.xcspec
Specs/AppShortcutStringsMetadata.xcspec
Specs/AssetCatalogCompiler.xcspec
Specs/CompileSkybox.xcspec
Expand Down
204 changes: 204 additions & 0 deletions Sources/SWBApplePlatform/Specs/AppleFileTypes.xcspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// Copyright (c) 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//

(
{
Type = FileType;
Identifier = "file.referenceobject";
BasedOn = sourcecode;
Name = "ARKit Reference Object";
Extensions = (
referenceobject,
);
AppliesToBuildRules = YES;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;
UTI = "com.apple.arkit.referenceobject";
},
{
Type = FileType;
Identifier = "text.json.xcstrings";
BasedOn = text.json;
Name = "XCStrings files";
UTI = "com.apple.xcode.xcstrings";
Extensions = (
xcstrings,
);
AppliesToBuildRules = YES;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;
},
{
AppliesToBuildRules = YES;
CanSetIncludeInIndex = YES;
Extensions = (
rkassets,
);
Identifier = "folder.rkassets";
IncludeInIndex = YES;
IsFolder = YES;
IsTextFile = NO;
IsWrapperFolder = YES;
Name = "Reality Assets";
Type = FileType;
UTI = "com.apple.rkassets";
},
{
Type = FileType;
Identifier = "com.apple.instruments.package-definition";
BasedOn = text.xml;
Name = "Instruments Package Definition";
Extensions = (instrpkg);
AppliesToBuildRules = Yes;
UTI = "com.apple.instruments.package-definition";
},
{
Type = FileType;
Identifier = "com.apple.instruments.instrdst";
BasedOn = wrapper;
Name = "Instruments Distribution Package";
Extensions = (instrdst);
UTI = "com.apple.instruments.instrdst";
},
{
Type = FileType;
Identifier = "file.intentdefinition";
BasedOn = sourcecode;
Name = "SiriKit Intent Definition";
Extensions = (
intentdefinition,
);
AppliesToBuildRules = YES;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;
UTI = "com.apple.sirikit.intentdefinition";
"FallbackAutoroutingBuildPhase" = Resources;
},
{
Name = "XCAppExtensionPoints";
Type = FileType;
Identifier = text.plist.xcappextensionpoints;
BasedOn = text.plist;
Extensions = (
xcappextensionpoints
);
IsTransparent = NO;
AppliesToBuildRules = YES;
UTI = "com.apple.dt.xcappextensionpoints";
},
{
Type = FileType;
Identifier = "file.mlmodel";
BasedOn = sourcecode;
Name = "CoreML Machine Learning Model";
Extensions = (
mlmodel,
mlkitmodel,
);
AppliesToBuildRules = YES;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;
UTI = "com.apple.coreml.model";
},
{
Type = FileType;
Identifier = "folder.mlpackage";
BasedOn = wrapper;
Name = "CoreML Machine Learning Model Package";
Extensions = (
mlpackage,
);
IsWrapperFolder = YES;
IsFolder = YES;
AppliesToBuildRules = YES;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;
UTI = "com.apple.coreml.mlpackage";
},
// XDesign file types
{
Identifier = wrapper.xcdatamodel;
Type = FileType;
// Has to base on 'sourcecode' so that when we are adding data model file to a target,
// it gets dropped into the source code bucket to be compiled later.
BasedOn = sourcecode;
Name = "Data model files";
Extensions = (xcdatamodel);
AppliesToBuildRules = yes;

// from wrapper
IsWrapperFolder = YES;
IsFolder = NO;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;

// Don't set encoding
IsTextFile = NO;

UTI = "com.apple.xcode.model.data";
},

{
Identifier = wrapper.xcdatamodeld;
Type = FileType;
// Has to base on 'sourcecode' so that when we are adding data model file to a target,
// it gets dropped into the source code bucket to be compiled later.
BasedOn = sourcecode;
Name = "Data model version files";
Extensions = (xcdatamodeld);
AppliesToBuildRules = yes;

// from wrapper
IsWrapperFolder = YES;
IsFolder = YES;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;

// Don't set encoding
IsTextFile = NO;

UTI = "com.apple.xcode.model.data-version";
},

{
Identifier = wrapper.xcmappingmodel;
Type = FileType;
// Has to base on 'sourcecode' so that when we are adding data model file to a target,
// it gets dropped into the source code bucket to be compiled later.
BasedOn = sourcecode;
Name = "Mapping model files";
Extensions = (xcmappingmodel);
AppliesToBuildRules = yes;

// from wrapper
IsWrapperFolder = YES;
IsFolder = NO;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;

// Don't set encoding
IsTextFile = NO;

UTI = "com.apple.xcode.model.data-mapping";
},

{
Identifier = wrapper.xcclassmodel;
Type = FileType;
BasedOn = wrapper;
Name = "Class model files";
Extensions = (xcclassmodel);
IsTransparent = NO;
AppliesToBuildRules = yes;
UTI = "com.apple.xcode.model.class";
},
)
78 changes: 1 addition & 77 deletions Sources/SWBApplePlatform/Specs/CoreData.xcspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,83 +11,6 @@
//===----------------------------------------------------------------------===//

(
// XDesign file types
{
Identifier = wrapper.xcdatamodel;
Type = FileType;
// Has to base on 'sourcecode' so that when we are adding data model file to a target,
// it gets dropped into the source code bucket to be compiled later.
BasedOn = sourcecode;
Name = "Data model files";
Extensions = (xcdatamodel);
AppliesToBuildRules = yes;

// from wrapper
IsWrapperFolder = YES;
IsFolder = NO;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;

// Don't set encoding
IsTextFile = NO;

UTI = "com.apple.xcode.model.data";
},

{
Identifier = wrapper.xcdatamodeld;
Type = FileType;
// Has to base on 'sourcecode' so that when we are adding data model file to a target,
// it gets dropped into the source code bucket to be compiled later.
BasedOn = sourcecode;
Name = "Data model version files";
Extensions = (xcdatamodeld);
AppliesToBuildRules = yes;

// from wrapper
IsWrapperFolder = YES;
IsFolder = YES;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;

// Don't set encoding
IsTextFile = NO;

UTI = "com.apple.xcode.model.data-version";
},

{
Identifier = wrapper.xcmappingmodel;
Type = FileType;
// Has to base on 'sourcecode' so that when we are adding data model file to a target,
// it gets dropped into the source code bucket to be compiled later.
BasedOn = sourcecode;
Name = "Mapping model files";
Extensions = (xcmappingmodel);
AppliesToBuildRules = yes;

// from wrapper
IsWrapperFolder = YES;
IsFolder = NO;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;

// Don't set encoding
IsTextFile = NO;

UTI = "com.apple.xcode.model.data-mapping";
},

{
Identifier = wrapper.xcclassmodel;
Type = FileType;
BasedOn = wrapper;
Name = "Class model files";
Extensions = (xcclassmodel);
IsTransparent = NO;
AppliesToBuildRules = yes;
UTI = "com.apple.xcode.model.class";
},
{
_Domain = darwin;
Type = Compiler;
Expand Down Expand Up @@ -201,6 +124,7 @@
);
},
{
_Domain = darwin;
Type = Compiler;
Identifier = "com.apple.compilers.model.coredatamapping";
Name = "Core Data Mapping Model Compiler (MAPC)";
Expand Down
29 changes: 0 additions & 29 deletions Sources/SWBApplePlatform/Specs/CoreML.xcspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,6 @@
//===----------------------------------------------------------------------===//

(
{
Type = FileType;
Identifier = "file.mlmodel";
BasedOn = sourcecode;
Name = "CoreML Machine Learning Model";
Extensions = (
mlmodel,
mlkitmodel,
);
AppliesToBuildRules = YES;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;
UTI = "com.apple.coreml.model";
},
{
Type = FileType;
Identifier = "folder.mlpackage";
BasedOn = wrapper;
Name = "CoreML Machine Learning Model Package";
Extensions = (
mlpackage,
);
IsWrapperFolder = YES;
IsFolder = YES;
AppliesToBuildRules = YES;
IncludeInIndex = YES;
CanSetIncludeInIndex = YES;
UTI = "com.apple.coreml.mlpackage";
},
{
_Domain = darwin;
Type = Compiler;
Expand Down
1 change: 1 addition & 0 deletions Sources/SWBApplePlatform/Specs/EXUtil.xcspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},

{
_Domain = darwin;
Type = Compiler;
Identifier = "com.apple.compilers.appextension-plist-generator";
Name = "AppExtension plist generator";
Expand Down
Loading
Loading