Skip to content

Commit 88c9134

Browse files
committed
Move many Apple platforms build rules under the darwin domain
1 parent 8ebc2e3 commit 88c9134

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+115
-73
lines changed

Sources/SWBApplePlatform/AppIntentsMetadataTaskProducer.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ final class AppIntentsMetadataTaskProducer: PhasedTaskProducer, TaskProducer {
4949

5050
func generateTasks() async -> [any PlannedTask] {
5151
let tasks: [any PlannedTask] = []
52+
guard let compilerSpec = self.context.appShortcutStringsMetadataCompilerSpec else {
53+
return []
54+
}
5255
guard !context.settings.globalScope.evaluate(BuiltinMacros.LM_SKIP_METADATA_EXTRACTION) else {
5356
return []
5457
}
@@ -151,7 +154,7 @@ final class AppIntentsMetadataTaskProducer: PhasedTaskProducer, TaskProducer {
151154
let inputs = appShortcutStringsSources + assistantIntentsStringsSources
152155
if inputs.count > 0, appShortcutStringsSources.count < 2, assistantIntentsStringsSources.count < 2 {
153156
let appShortcutsMetadataCbc = CommandBuildContext(producer: self.context, scope: scope, inputs: inputs, resourcesDir: buildFilesProcessingContext.resourcesDir)
154-
await self.context.appShortcutStringsMetadataCompilerSpec.constructTasks(appShortcutsMetadataCbc, delegate)
157+
await compilerSpec.constructTasks(appShortcutsMetadataCbc, delegate)
155158
}
156159

157160
// Only construct SSU task by default for public SDK clients. Internal default behavior should skip SSU task construction.

Sources/SWBApplePlatform/Specs/AppIntentsMetadata.xcspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
(
1414
{
15+
_Domain = darwin;
1516
Type = Compiler;
1617
Identifier = "com.apple.compilers.appintentsmetadata";
1718
Name = "App Intents Metadata Extractor";

Sources/SWBApplePlatform/Specs/AppIntentsNLTraining.xcspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
(
1414
{
15+
_Domain = darwin;
1516
Type = Compiler;
1617
Identifier = "com.apple.compilers.appintents-ssu-training";
1718
Name = "App Intents SSU Training Processor";

Sources/SWBApplePlatform/Specs/AppShortcutStringsMetadata.xcspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
(
1414
{
15+
_Domain = darwin;
1516
Type = Compiler;
1617
Identifier = "com.apple.compilers.appshortcutstringsmetadata";
1718
Name = "App Shortcut Strings Metadata Extractor";

Sources/SWBApplePlatform/Specs/AssetCatalogCompiler.xcspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
(
1414
{
15+
_Domain = darwin;
1516
Type = Compiler;
1617
Identifier = com.apple.compilers.assetcatalog;
1718
Name = "Asset Catalog Compiler";

Sources/SWBApplePlatform/Specs/CompileSkybox.xcspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
(
1414
{
15+
_Domain = darwin;
1516
Identifier = "com.apple.build-tasks.compile-skybox.xcplugin";
1617
Type = Compiler;
1718
Name = "Compile Skybox";

Sources/SWBApplePlatform/Specs/CopyPNGFile.xcspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
(
1414

15-
{ Type = Compiler;
15+
{
16+
_Domain = darwin;
17+
Type = Compiler;
1618
Identifier = com.apple.build-tasks.copy-png-file;
1719
Name = "Compress PNG Files";
1820
Description = "Copies a .png file resource, optionally compressing it.";

Sources/SWBApplePlatform/Specs/CopyTiffFile.xcspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
(
14-
{ Identifier = com.apple.build-tasks.copy-tiff-file;
14+
{
15+
_Domain = darwin;
16+
Identifier = com.apple.build-tasks.copy-tiff-file;
1517
Type = Compiler;
1618
Name = "Copy Tiff File";
1719
Description = "Copies a .tiff file resource with optional compression of the destination file";

Sources/SWBApplePlatform/Specs/CoreData.xcspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
UTI = "com.apple.xcode.model.class";
9090
},
9191
{
92+
_Domain = darwin;
9293
Type = Compiler;
9394
Identifier = "com.apple.compilers.model.coredata";
9495
Name = "Data Model Compiler (MOMC)";

Sources/SWBApplePlatform/Specs/CoreML.xcspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
UTI = "com.apple.coreml.mlpackage";
4242
},
4343
{
44+
_Domain = darwin;
4445
Type = Compiler;
4546
Identifier = "com.apple.compilers.coreml";
4647
Name = "CoreML Model Compiler";

0 commit comments

Comments
 (0)