@@ -47,12 +47,12 @@ public final class PackagePIFBuilder {
47
47
let packageManifest : PackageModel . Manifest // FIXME: Can't we just use `package.manifest` instead? —— Paulo
48
48
49
49
/// The built PIF project object.
50
- public var pifProject : SwiftBuild . ProjectModel . Project {
50
+ public var pifProject : ProjectModel . Project {
51
51
assert ( self . _pifProject != nil , " Call build() method to build the PIF first " )
52
52
return self . _pifProject!
53
53
}
54
54
55
- private var _pifProject : SwiftBuild . ProjectModel . Project ?
55
+ private var _pifProject : ProjectModel . Project ?
56
56
57
57
/// Scope for logging informational debug messages (intended for developers, not end users).
58
58
let observabilityScope : ObservabilityScope
@@ -91,7 +91,7 @@ public final class PackagePIFBuilder {
91
91
92
92
/// For executables — only executables for now — we check to see if there is a custom package product type
93
93
/// provider that can provide this information.
94
- func customProductType( forExecutable product: PackageModel . Product ) -> SwiftBuild . ProjectModel . Target . ProductType ?
94
+ func customProductType( forExecutable product: PackageModel . Product ) -> ProjectModel . Target . ProductType ?
95
95
96
96
/// Returns all *device family* IDs for all SDK variants.
97
97
func deviceFamilyIDs( ) -> Set < Int >
@@ -103,12 +103,12 @@ public final class PackagePIFBuilder {
103
103
var isPluginExecutionSandboxingDisabled : Bool { get }
104
104
105
105
/// Hook to customize the project-wide build settings.
106
- func configureProjectBuildSettings( _ buildSettings: inout SwiftBuild . ProjectModel . BuildSettings )
106
+ func configureProjectBuildSettings( _ buildSettings: inout ProjectModel . BuildSettings )
107
107
108
108
/// Hook to customize source module build settings.
109
109
func configureSourceModuleBuildSettings(
110
110
sourceModule: PackageGraph . ResolvedModule ,
111
- settings: inout SwiftBuild . ProjectModel . BuildSettings
111
+ settings: inout ProjectModel . BuildSettings
112
112
)
113
113
114
114
/// Custom install path for the specified product, if any.
@@ -124,13 +124,13 @@ public final class PackagePIFBuilder {
124
124
func customSDKOptions( forPlatform: PackageModel . Platform ) -> [ String ]
125
125
126
126
/// Create additional custom PIF targets after all targets have been built.
127
- func addCustomTargets( pifProject: SwiftBuild . ProjectModel . Project ) throws -> [ PackagePIFBuilder . ModuleOrProduct ]
127
+ func addCustomTargets( pifProject: ProjectModel . Project ) throws -> [ PackagePIFBuilder . ModuleOrProduct ]
128
128
129
129
/// Should we suppresses the specific product dependency, updating the provided build settings if necessary?
130
130
/// The specified product may be in the same package or a different one.
131
131
func shouldSuppressProductDependency(
132
132
product: PackageModel . Product ,
133
- buildSettings: inout SwiftBuild . ProjectModel . BuildSettings
133
+ buildSettings: inout ProjectModel . BuildSettings
134
134
) -> Bool
135
135
136
136
/// Should we set the install path for a dynamic library/framework?
@@ -212,7 +212,7 @@ public final class PackagePIFBuilder {
212
212
213
213
/// Build an empty PIF project for the specified `Package`.
214
214
215
- public class func buildEmptyPIF( package : PackageModel . Package ) -> SwiftBuild . ProjectModel . Project {
215
+ public class func buildEmptyPIF( package : PackageModel . Package ) -> ProjectModel . Project {
216
216
self . buildEmptyPIF (
217
217
id: " PACKAGE: \( package . identity) " ,
218
218
path: package . manifest. path. pathString,
@@ -229,7 +229,7 @@ public final class PackagePIFBuilder {
229
229
projectDir: String ,
230
230
name: String ,
231
231
developmentRegion: String ? = nil
232
- ) -> SwiftBuild . ProjectModel . Project {
232
+ ) -> ProjectModel . Project {
233
233
var project = ProjectModel . Project (
234
234
id: GUID ( id) ,
235
235
path: path,
@@ -246,7 +246,7 @@ public final class PackagePIFBuilder {
246
246
}
247
247
248
248
public func buildPlaceholderPIF( id: String , path: String , projectDir: String , name: String ) -> ModuleOrProduct {
249
- var project = SwiftBuild . ProjectModel. Project (
249
+ var project = ProjectModel . Project (
250
250
id: GUID ( id) ,
251
251
path: path,
252
252
projectDir: projectDir,
@@ -261,7 +261,7 @@ public final class PackagePIFBuilder {
261
261
let targetKP = try ! project. addAggregateTarget { _ in
262
262
ProjectModel . AggregateTarget ( id: " PACKAGE-PLACEHOLDER: \( id) " , name: id)
263
263
}
264
- let targetSettings : SwiftBuild . ProjectModel . BuildSettings = self . package . underlying. packageBaseBuildSettings
264
+ let targetSettings : ProjectModel . BuildSettings = self . package . underlying. packageBaseBuildSettings
265
265
266
266
project [ keyPath: targetKP] . common. addBuildConfig { id in
267
267
ProjectModel . BuildConfig ( id: id, name: " Debug " , settings: targetSettings)
@@ -350,7 +350,7 @@ public final class PackagePIFBuilder {
350
350
351
351
public var description : String { rawValue }
352
352
353
- init ( from pifProductType: SwiftBuild . ProjectModel . Target . ProductType ) {
353
+ init ( from pifProductType: ProjectModel . Target . ProductType ) {
354
354
self = switch pifProductType {
355
355
case . application: . application
356
356
case . staticArchive: . staticArchive
@@ -525,7 +525,7 @@ public final class PackagePIFBuilder {
525
525
self . delegate. configureProjectBuildSettings ( & settings)
526
526
527
527
for (platform, platformOptions) in self . package . sdkOptions ( delegate: self . delegate) {
528
- let pifPlatform = SwiftBuild . ProjectModel. BuildSettings. Platform ( from: platform)
528
+ let pifPlatform = ProjectModel . BuildSettings. Platform ( from: platform)
529
529
settings. platformSpecificSettings [ pifPlatform] ![ . SPECIALIZATION_SDK_OPTIONS] !
530
530
. append ( contentsOf: platformOptions)
531
531
}
0 commit comments