-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPackage.swift
107 lines (105 loc) · 2.83 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
// swift-tools-version: 5.9
import CompilerPluginSupport
import PackageDescription
let package = Package(
name: "swift-atproto",
platforms: [
.iOS(.v16),
.macOS(.v13),
],
products: [
.library(
name: "ATProto",
targets: ["ATProto"]
),
.library(
name: "ATProtoAPI",
targets: ["ATProtoAPI"]
),
.library(
name: "ATProtoXRPC",
targets: ["ATProtoXRPC"]
),
.library(
name: "ATProtoCore",
targets: ["ATProtoCore"]
),
.library(
name: "ATProtoMacro",
targets: ["ATProtoMacro"]
),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-parsing.git", from: "0.13.0"),
.package(url: "https://github.com/apple/swift-collections.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0"),
],
targets: [
.target(
name: "ATProto",
dependencies: [
"ATProtoAPI",
"ATProtoXRPC",
"ATProtoCore",
]
),
.target(
name: "ATProtoAPI",
dependencies: [
"ATProtoXRPC",
"ATProtoCore",
"ATProtoMacro",
]
),
.target(
name: "ATProtoXRPC",
dependencies: [
.target(name: "ATProtoCore"),
.product(name: "Parsing", package: "swift-parsing"),
],
exclude: [
"Entities/Union.swift.gyb"
]
),
.testTarget(
name: "ATProtoXRPCTests",
dependencies: [
"ATProtoXRPC",
"ATProtoMacro",
]
),
.target(
name: "ATProtoCore",
dependencies: [
.product(name: "OrderedCollections", package: "swift-collections"),
]
),
.testTarget(
name: "ATProtoCoreTests",
dependencies: [
"ATProtoCore"
]
),
.target(
name: "ATProtoMacro",
dependencies: [
"ATProtoMacroPlugin"
]
),
.macro(
name: "ATProtoMacroPlugin",
dependencies: [
"ATProtoCore",
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
]
),
.testTarget(
name: "ATProtoMacroPluginTests",
dependencies: [
"ATProtoMacroPlugin",
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
]
),
]
)