-
Notifications
You must be signed in to change notification settings - Fork 25
/
Package.swift
144 lines (130 loc) · 4.63 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "llbuild2",
platforms: [
.macOS(.v10_15)
],
products: [
.library(name: "llbuild2", targets: ["llbuild2"]),
.library(name: "llbuild2fx", targets: ["llbuild2fx"]),
.library(name: "llbuild2Ninja", targets: ["LLBNinja"]),
.library(name: "llbuild2BuildSystem", targets: ["LLBBuildSystem"]),
.library(name: "llbuild2Util", targets: ["LLBUtil", "LLBBuildSystemUtil"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "1.1.4" ..< "4.0.0"),
.package(url: "https://github.com/apple/swift-llbuild.git", from: "0.5.0"),
.package(url: "https://github.com/apple/swift-tools-support-async.git", from: "0.10.0"),
.package(url: "https://github.com/apple/swift-tools-support-core.git", from: "0.2.7"),
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.17.0"),
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.4.1"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.2"),
.package(url: "https://github.com/apple/swift-distributed-tracing", from: "1.1.2"),
],
targets: [
// Core build functionality
.target(
name: "llbuild2",
dependencies: [
"SwiftToolsSupportCAS",
"Logging",
.product(name: "Tracing", package: "swift-distributed-tracing"),
.product(name: "Instrumentation", package: "swift-distributed-tracing")
]
),
.testTarget(
name: "llbuild2Tests",
dependencies: ["llbuild2", "LLBUtil"]
),
// Bazel RemoteAPI Protocol
.target(
name: "BazelRemoteAPI",
dependencies: ["GRPC", "SwiftProtobuf", "SwiftProtobufPluginLibrary"]
),
// Ninja Build support
.target(
name: "LLBNinja",
dependencies: ["llbuild2", "LLBUtil", "llbuildSwift"]
),
.testTarget(
name: "LLBNinjaTests",
dependencies: ["LLBNinja", "SwiftToolsSupport-auto"]
),
// Utility classes, including concrete/default implementations of core
// protocols that clients and/or tests may find useful.
.target(
name: "LLBUtil",
dependencies: ["llbuild2"]
),
.testTarget(
name: "LLBUtilTests",
dependencies: ["LLBUtil"]
),
// Bazel CAS/Execution Backend
.target(
name: "LLBBazelBackend",
dependencies: ["llbuild2", "BazelRemoteAPI", "Crypto", "GRPC"]
),
// Build system support
.target(
name: "LLBBuildSystem",
dependencies: ["llbuild2", "SwiftProtobuf", "Crypto"]
),
.target(
name: "LLBBuildSystemUtil",
dependencies: ["llbuild2", "SwiftToolsSupport-auto", "LLBBuildSystem"]
),
.target(
name: "LLBBuildSystemTestHelpers",
dependencies: ["LLBBuildSystem", "LLBUtil"]
),
.testTarget(
name: "LLBBuildSystemTests",
dependencies: ["LLBBuildSystemTestHelpers", "LLBUtil", "LLBBuildSystemUtil"]
),
.testTarget(
name: "LLBBuildSystemUtilTests",
dependencies: ["LLBBuildSystemUtil", "LLBBuildSystemTestHelpers", "LLBUtil"]
),
// FX build engine
.target(
name: "llbuild2fx",
dependencies: ["llbuild2"]
),
.testTarget(
name: "llbuild2fxTests",
dependencies: ["llbuild2fx"]
),
// Command line tools
.target(
name: "LLBCommands",
dependencies: ["LLBNinja", "ArgumentParser"]
),
// llcastool implementation
.target(
name: "LLBCASTool",
dependencies: [
"GRPC",
"SwiftToolsSupport-auto",
"BazelRemoteAPI",
"llbuild2",
"LLBBazelBackend",
"LLBUtil",
]
),
// Executable multi-tool
.target(
name: "llbuild2-tool",
dependencies: ["LLBCommands", "ArgumentParser"],
path: "Sources/Tools/llbuild2-tool"
),
// `llcastool` executable.
.target(
name: "llcastool",
dependencies: ["LLBCASTool", "ArgumentParser"],
path: "Sources/Tools/llcastool"
),
]
)