-
Notifications
You must be signed in to change notification settings - Fork 3
/
Package.swift
67 lines (63 loc) · 2.02 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
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "ChimeKit",
platforms: [
.macOS(.v11),
.iOS(.v16),
.visionOS(.v1),
],
products: [
.library(name: "ChimeExtensionInterface", targets: ["ChimeExtensionInterface"]),
.library(name: "ChimeLSPAdapter", targets: ["ChimeLSPAdapter"]),
.library(name: "ChimeKit", targets: ["ChimeKit"]),
],
dependencies: [
.package(url: "https://github.com/ChimeHQ/AsyncXPCConnection", from: "1.0.0"),
.package(url: "https://github.com/ChimeHQ/Extendable", from: "0.3.0"),
.package(url: "https://github.com/ChimeHQ/ProcessEnv", from: "1.0.0"),
.package(url: "https://github.com/ChimeHQ/LanguageClient", revision: "f1610f7074b74ca3c1d6abd586014626842f09c5"),
.package(url: "https://github.com/ChimeHQ/LanguageServerProtocol", from: "0.13.2"),
.package(url: "https://github.com/mattmassicotte/Queue", from: "0.1.4"),
.package(url: "https://github.com/ChimeHQ/JSONRPC", from: "0.9.0"),
],
targets: [
.target(name: "ChimeExtensionInterface",
dependencies: [
"AsyncXPCConnection",
"Extendable",
"Queue"
]),
.testTarget(name: "ChimeExtensionInterfaceTests",
dependencies: [
"ChimeExtensionInterface",
.product(name: "ProcessEnv", package: "ProcessEnv", condition: .when(platforms: [.macOS])),
]),
.target(name: "ChimeLSPAdapter",
dependencies: [
"LanguageClient",
"LanguageServerProtocol",
"ChimeExtensionInterface",
.product(name: "ProcessEnv", package: "ProcessEnv", condition: .when(platforms: [.macOS])),
"Queue",
"JSONRPC",
]),
.testTarget(name: "ChimeLSPAdapterTests",
dependencies: [
"ChimeLSPAdapter"
]),
.target(name: "ChimeKit",
dependencies: [
"ChimeExtensionInterface",
"ChimeLSPAdapter",
]),
]
)
let swiftSettings: [SwiftSetting] = [
.enableExperimentalFeature("StrictConcurrency")
]
for target in package.targets {
var settings = target.swiftSettings ?? []
settings.append(contentsOf: swiftSettings)
target.swiftSettings = settings
}