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.
4
4
import PackageDescription
5
5
import class Foundation. ProcessInfo
6
6
@@ -43,26 +43,18 @@ let package = Package(
43
43
targets: [
44
44
45
45
/// C modules wrapper for _InternalLibSwiftScan.
46
- . target( name: " CSwiftScan " ,
47
- exclude: [ " CMakeLists.txt " ] ) ,
46
+ . target( name: " CSwiftScan " ) ,
48
47
49
48
/// The driver library.
50
49
. target(
51
50
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 " ] ) ,
58
53
59
54
/// The execution library.
60
55
. target(
61
56
name: " SwiftDriverExecution " ,
62
- dependencies: [
63
- " SwiftDriver " ,
64
- . product( name: " SwiftToolsSupport-auto " , package : " swift-tools-support-core " )
65
- ] ) ,
57
+ dependencies: [ " SwiftDriver " , " SwiftToolsSupport-auto " ] ) ,
66
58
67
59
/// Driver tests.
68
60
. testTarget(
@@ -73,11 +65,7 @@ let package = Package(
73
65
/// IncrementalImport tests
74
66
. testTarget(
75
67
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 " ] ) ,
81
69
82
70
. target(
83
71
name: " IncrementalTestFramework " ,
@@ -95,34 +83,28 @@ let package = Package(
95
83
/// The options library.
96
84
. target(
97
85
name: " SwiftOptions " ,
98
- dependencies: [
99
- . product( name: " SwiftToolsSupport-auto " , package : " swift-tools-support-core " ) ,
100
- ] ) ,
86
+ dependencies: [ " SwiftToolsSupport-auto " ] ) ,
101
87
. testTarget(
102
88
name: " SwiftOptionsTests " ,
103
89
dependencies: [ " SwiftOptions " ] ) ,
104
90
105
91
/// The primary driver executable.
106
- . executableTarget (
92
+ . target (
107
93
name: " swift-driver " ,
108
94
dependencies: [ " SwiftDriverExecution " , " SwiftDriver " ] ) ,
109
95
110
96
/// The help executable.
111
- . executableTarget (
97
+ . target (
112
98
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 " ] ) ,
118
100
119
101
/// The help executable.
120
- . executableTarget (
102
+ . target (
121
103
name: " swift-build-sdk-interfaces " ,
122
104
dependencies: [ " SwiftDriver " , " SwiftDriverExecution " ] ) ,
123
105
124
106
/// The `makeOptions` utility (for importing option definitions).
125
- . executableTarget (
107
+ . target (
126
108
name: " makeOptions " ,
127
109
dependencies: [ ] ) ,
128
110
] ,
@@ -141,9 +123,7 @@ if ProcessInfo.processInfo.environment["SWIFT_DRIVER_LLBUILD_FWK"] == nil {
141
123
. package ( path: " ../llbuild " ) ,
142
124
]
143
125
}
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 " ]
147
127
}
148
128
149
129
if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
0 commit comments