@@ -8,26 +8,6 @@ See http://swift.org/LICENSE.txt for license information
8
8
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
9
9
]]
10
10
11
- file (TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR} "
12
- _SWBApplePlatform_NATIVE_CMAKE_CURRENT_BINARY_DIR )
13
- file (CONFIGURE
14
- OUTPUT resource_bundle_accessor.swift
15
- CONTENT [[
16
- import Foundation
17
- extension Foundation.Bundle {
18
- static let module: Bundle = {
19
- let mainPath = Bundle.main.bundleURL.appendingPathComponent("SwiftBuild_SWBApplePlatform.resources").path
20
- let buildPath = #"@_SWBApplePlatform_NATIVE_CMAKE_CURRENT_BINARY_DIR@\SwiftBuild_SWBApplePlatform.resources"#
21
- let preferredBundle = Bundle(path: mainPath)
22
- guard let bundle = preferredBundle ?? Bundle(path: buildPath) else {
23
- Swift.fatalError("could not load resource bundle: from \(mainPath) or \(buildPath)")
24
- }
25
- return bundle
26
- }()
27
- }
28
- ]]
29
- ESCAPE_QUOTES @ONLY NEWLINE_STYLE LF)
30
-
31
11
add_library (SWBApplePlatform
32
12
AppIntentsMetadataCompiler.swift
33
13
AppIntentsMetadataTaskProducer.swift
@@ -65,6 +45,77 @@ add_library(SWBApplePlatform
65
45
StringCatalogCompilerOutputParser.swift
66
46
StubBinaryTaskProducer.swift
67
47
XCStringsInputFileGroupingStrategy.swift)
48
+ SwiftBuild_Bundle(MODULE SWBApplePlatform FILES
49
+ Specs/AppIntentsMetadata.xcspec
50
+ Specs/AppIntentsNLTraining.xcspec
51
+ Specs/AppShortcutStringsMetadata.xcspec
52
+ Specs/AssetCatalogCompiler.xcspec
53
+ Specs/CompileSkybox.xcspec
54
+ Specs/CopyPNGFile.xcspec
55
+ Specs/CopyTiffFile.xcspec
56
+ "Specs/Core Data.xcspec"
57
+ Specs/CoreML.xcspec
58
+ "Specs/Darwin Package Types.xcspec"
59
+ "Specs/Darwin Product Types.xcspec"
60
+ Specs/DriverKit.xcspec
61
+ Specs/DTrace.xcspec
62
+ Specs/Embedded-Device.xcspec
63
+ Specs/Embedded-Shared.xcspec
64
+ Specs/Embedded-Simulator.xcspec
65
+ Specs/EmbeddedBinaryValidationUtility.xcspec
66
+ Specs/GenerateAppPlaygroundAssetCatalog.xcspec
67
+ Specs/GenerateTextureAtlas.xcspec
68
+ Specs/IBCompiler.xcspec
69
+ Specs/IBPostprocessor.xcspec
70
+ Specs/IBStoryboardCompiler.xcspec
71
+ Specs/IBStoryboardLinker.xcspec
72
+ Specs/IBStoryboardPostprocessor.xcspec
73
+ Specs/Iconutil.xcspec
74
+ Specs/Iig.xcspec
75
+ Specs/InfoPlistUtility.xcspec
76
+ Specs/InstrumentsPackage.xcspec
77
+ Specs/Intents.xcspec
78
+ "Specs/Interface Builder File Types.xcspec"
79
+ "Specs/iOS Device.xcspec"
80
+ "Specs/iOS Shared.xcspec"
81
+ "Specs/iOS Simulator.xcspec"
82
+ Specs/KernelExtension.xcspec
83
+ Specs/Lipo.xcspec
84
+ Specs/LSRegisterURL.xcspec
85
+ "Specs/MacOSX Architectures.xcspec"
86
+ "Specs/MacOSX Core Build System.xcspec"
87
+ "Specs/MacOSX Native Build System.xcspec"
88
+ "Specs/MacOSX Package Types.xcspec"
89
+ "Specs/MacOSX Product Types.xcspec"
90
+ Specs/MetalCompiler.xcspec
91
+ Specs/MetalFileTypes.xcspec
92
+ Specs/MetalLinker.xcspec
93
+ Specs/MetalPackageTypes.xcspec
94
+ Specs/MetalProductTypes.xcspec
95
+ Specs/MiG.xcspec
96
+ Specs/OpenCL.xcspec
97
+ Specs/OSACompile.xcspec
98
+ Specs/RCFileTypes.xcspec
99
+ Specs/RealityAssets.xcspec
100
+ Specs/ReferenceObject.xcspec
101
+ Specs/ResMerger.xcspec
102
+ Specs/Rez.xcspec
103
+ "Specs/SceneKit FileTypes.xcspec"
104
+ "Specs/SceneKit Tools.xcspec"
105
+ Specs/SpriteKitFileTypes.xcspec
106
+ Specs/TiffUtil.xcspec
107
+ "Specs/tvOS Device.xcspec"
108
+ "Specs/tvOS Shared.xcspec"
109
+ "Specs/tvOS Simulator.xcspec"
110
+ Specs/WatchKit1ProductTypes.xcspec
111
+ "Specs/watchOS Device.xcspec"
112
+ "Specs/watchOS Shared.xcspec"
113
+ "Specs/watchOS Simulator.xcspec"
114
+ Specs/XCAppExtensionPoints.xcspec
115
+ Specs/XCStrings.xcspec
116
+ "Specs/xrOS Device.xcspec"
117
+ "Specs/xrOS Shared.xcspec"
118
+ "Specs/xrOS Simulator.xcspec" )
68
119
set_target_properties (SWBApplePlatform PROPERTIES
69
120
Swift_LANGUAGE_VERSION 6)
70
121
target_link_libraries (SWBApplePlatform PUBLIC
@@ -73,8 +124,6 @@ target_link_libraries(SWBApplePlatform PUBLIC
73
124
SWBUtil
74
125
SWBProtocol
75
126
SWBTaskConstruction)
76
- target_sources (SWBApplePlatform PRIVATE
77
- "${CMAKE_CURRENT_BINARY_DIR} /resource_bundle_accessor.swift" )
78
127
79
128
set_target_properties (SWBApplePlatform PROPERTIES
80
129
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
0 commit comments