Skip to content

Commit 4b0a37a

Browse files
authored
Merge pull request swiftlang#756 from CodaFi/packing-tape
Swap Package Manifest Files
2 parents 39009f4 + e3d1d39 commit 4b0a37a

File tree

2 files changed

+49
-49
lines changed

2 files changed

+49
-49
lines changed

Package.swift

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// swift-tools-version:5.5
2-
// In order to support users running on legacy Xcodes, please ensure that
3-
// Package@swift-5.4.swift is kept in sync with this file.
1+
// swift-tools-version:5.1
2+
// In order to support users running on the latest Xcodes, please ensure that
3+
// Package@swift-5.5.swift is kept in sync with this file.
44
import PackageDescription
55
import class Foundation.ProcessInfo
66

@@ -43,26 +43,18 @@ let package = Package(
4343
targets: [
4444

4545
/// C modules wrapper for _InternalLibSwiftScan.
46-
.target(name: "CSwiftScan",
47-
exclude: [ "CMakeLists.txt" ]),
46+
.target(name: "CSwiftScan"),
4847

4948
/// The driver library.
5049
.target(
5150
name: "SwiftDriver",
52-
dependencies: [
53-
"SwiftOptions",
54-
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
55-
"CSwiftScan",
56-
.product(name: "Yams", package: "Yams"),
57-
]),
51+
dependencies: ["SwiftOptions", "SwiftToolsSupport-auto",
52+
"CSwiftScan", "Yams"]),
5853

5954
/// The execution library.
6055
.target(
6156
name: "SwiftDriverExecution",
62-
dependencies: [
63-
"SwiftDriver",
64-
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core")
65-
]),
57+
dependencies: ["SwiftDriver", "SwiftToolsSupport-auto"]),
6658

6759
/// Driver tests.
6860
.testTarget(
@@ -73,11 +65,7 @@ let package = Package(
7365
/// IncrementalImport tests
7466
.testTarget(
7567
name: "IncrementalImportTests",
76-
dependencies: [
77-
"IncrementalTestFramework",
78-
"TestUtilities",
79-
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
80-
]),
68+
dependencies: ["IncrementalTestFramework", "TestUtilities", "SwiftToolsSupport-auto"]),
8169

8270
.target(
8371
name: "IncrementalTestFramework",
@@ -95,34 +83,28 @@ let package = Package(
9583
/// The options library.
9684
.target(
9785
name: "SwiftOptions",
98-
dependencies: [
99-
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
100-
]),
86+
dependencies: ["SwiftToolsSupport-auto"]),
10187
.testTarget(
10288
name: "SwiftOptionsTests",
10389
dependencies: ["SwiftOptions"]),
10490

10591
/// The primary driver executable.
106-
.executableTarget(
92+
.target(
10793
name: "swift-driver",
10894
dependencies: ["SwiftDriverExecution", "SwiftDriver"]),
10995

11096
/// The help executable.
111-
.executableTarget(
97+
.target(
11298
name: "swift-help",
113-
dependencies: [
114-
"SwiftOptions",
115-
.product(name: "ArgumentParser", package: "swift-argument-parser"),
116-
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
117-
]),
99+
dependencies: ["SwiftOptions", "ArgumentParser", "SwiftToolsSupport-auto"]),
118100

119101
/// The help executable.
120-
.executableTarget(
102+
.target(
121103
name: "swift-build-sdk-interfaces",
122104
dependencies: ["SwiftDriver", "SwiftDriverExecution"]),
123105

124106
/// The `makeOptions` utility (for importing option definitions).
125-
.executableTarget(
107+
.target(
126108
name: "makeOptions",
127109
dependencies: []),
128110
],
@@ -141,9 +123,7 @@ if ProcessInfo.processInfo.environment["SWIFT_DRIVER_LLBUILD_FWK"] == nil {
141123
.package(path: "../llbuild"),
142124
]
143125
}
144-
package.targets.first(where: { $0.name == "SwiftDriverExecution" })!.dependencies += [
145-
.product(name: "llbuildSwift", package: "swift-llbuild"),
146-
]
126+
package.targets.first(where: { $0.name == "SwiftDriverExecution" })!.dependencies += ["llbuildSwift"]
147127
}
148128

149129
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// swift-tools-version:5.1
2-
// In order to support users running on the latest Xcodes, please ensure that
1+
// swift-tools-version:5.5
2+
// In order to support users running on legacy Xcodes, please ensure that
33
// Package.swift is kept in sync with this file.
44
import PackageDescription
55
import class Foundation.ProcessInfo
@@ -43,18 +43,26 @@ let package = Package(
4343
targets: [
4444

4545
/// C modules wrapper for _InternalLibSwiftScan.
46-
.target(name: "CSwiftScan"),
46+
.target(name: "CSwiftScan",
47+
exclude: [ "CMakeLists.txt" ]),
4748

4849
/// The driver library.
4950
.target(
5051
name: "SwiftDriver",
51-
dependencies: ["SwiftOptions", "SwiftToolsSupport-auto",
52-
"CSwiftScan", "Yams"]),
52+
dependencies: [
53+
"SwiftOptions",
54+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
55+
"CSwiftScan",
56+
.product(name: "Yams", package: "Yams"),
57+
]),
5358

5459
/// The execution library.
5560
.target(
5661
name: "SwiftDriverExecution",
57-
dependencies: ["SwiftDriver", "SwiftToolsSupport-auto"]),
62+
dependencies: [
63+
"SwiftDriver",
64+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core")
65+
]),
5866

5967
/// Driver tests.
6068
.testTarget(
@@ -65,7 +73,11 @@ let package = Package(
6573
/// IncrementalImport tests
6674
.testTarget(
6775
name: "IncrementalImportTests",
68-
dependencies: ["IncrementalTestFramework", "TestUtilities", "SwiftToolsSupport-auto"]),
76+
dependencies: [
77+
"IncrementalTestFramework",
78+
"TestUtilities",
79+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
80+
]),
6981

7082
.target(
7183
name: "IncrementalTestFramework",
@@ -83,28 +95,34 @@ let package = Package(
8395
/// The options library.
8496
.target(
8597
name: "SwiftOptions",
86-
dependencies: ["SwiftToolsSupport-auto"]),
98+
dependencies: [
99+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
100+
]),
87101
.testTarget(
88102
name: "SwiftOptionsTests",
89103
dependencies: ["SwiftOptions"]),
90104

91105
/// The primary driver executable.
92-
.target(
106+
.executableTarget(
93107
name: "swift-driver",
94108
dependencies: ["SwiftDriverExecution", "SwiftDriver"]),
95109

96110
/// The help executable.
97-
.target(
111+
.executableTarget(
98112
name: "swift-help",
99-
dependencies: ["SwiftOptions", "ArgumentParser", "SwiftToolsSupport-auto"]),
113+
dependencies: [
114+
"SwiftOptions",
115+
.product(name: "ArgumentParser", package: "swift-argument-parser"),
116+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
117+
]),
100118

101119
/// The help executable.
102-
.target(
120+
.executableTarget(
103121
name: "swift-build-sdk-interfaces",
104122
dependencies: ["SwiftDriver", "SwiftDriverExecution"]),
105123

106124
/// The `makeOptions` utility (for importing option definitions).
107-
.target(
125+
.executableTarget(
108126
name: "makeOptions",
109127
dependencies: []),
110128
],
@@ -123,7 +141,9 @@ if ProcessInfo.processInfo.environment["SWIFT_DRIVER_LLBUILD_FWK"] == nil {
123141
.package(path: "../llbuild"),
124142
]
125143
}
126-
package.targets.first(where: { $0.name == "SwiftDriverExecution" })!.dependencies += ["llbuildSwift"]
144+
package.targets.first(where: { $0.name == "SwiftDriverExecution" })!.dependencies += [
145+
.product(name: "llbuildSwift", package: "swift-llbuild"),
146+
]
127147
}
128148

129149
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {

0 commit comments

Comments
 (0)