-
Notifications
You must be signed in to change notification settings - Fork 2
/
Package.swift
114 lines (99 loc) · 3.6 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
import Foundation
//https://github.com/apple/indexstore-db/tree/
//let appleDependencies: [Package.Dependency] = [
// // .package(name: "IndexStoreDB", url: "https://github.com/apple/indexstore-db.git", .branch(branch)),
// .package(name: "SwiftSyntax", url: "https://github.com/apple/swift-syntax.git", .branch(branch)),
//]
let package = Package(
name: "TypeFill",
platforms: [
.macOS(.v12)
],
products: [
.executable(name: "typefill", targets: ["TypeFill"]),
.executable(name: "derivedPath", targets: ["DerivedPath"]),
.library(name: "TypeFillKit", targets: ["TypeFillKit"]),
.library(name: "SKClient", targets: ["SKClient"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(
url: "https://github.com/apple/swift-syntax",
from: "509.1.0"
),
.package(url: "https://github.com/jpsim/SourceKitten", from: "0.34.1"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.2"),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift", from: "1.7.1"),
.package(url: "https://github.com/onevcat/Rainbow", from: "4.0.1"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
// MARK: Executable
.executableTarget(
name: "TypeFill",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "SourceKittenFramework", package: "SourceKitten"),
"TypeFillKit",
"SKClient",
]
),
.executableTarget(
name: "DerivedPath",
dependencies: [
"Derived"
]
),
// MARK: Frameworks
.target(
name: "TypeFillKit",
dependencies: [
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxBuilder", package: "swift-syntax"),
"Rainbow",
"SKClient",
]
),
// MARK: Common Frameworks
.target(
name: "Derived",
dependencies: [
"CryptoSwift",
]),
.target(
name: "SKClient",
dependencies: [
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftParser", package: "swift-syntax"),
.product(name: "SourceKittenFramework", package: "SourceKitten"),
"Rainbow",
"Derived",
]
),
// MARK: Tests
.testTarget(
name: "TypeFillTests",
dependencies: [
.product(name: "SwiftSyntax", package: "swift-syntax"),
"TypeFillKit",
"SKClient",
],
resources: [
.copy("Resource")
]
),
.testTarget(
name: "SKClientTests",
dependencies: [
"SKClient",
],
resources: [
.copy("Resource")
]
),
]
)