-
Notifications
You must be signed in to change notification settings - Fork 3
/
Package.swift
50 lines (49 loc) · 1.86 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
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "LSPService",
platforms: [
.macOS(.v12)
],
products: [
.executable(name: "LSPService", targets: ["LSPService"]),
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git",
exact: "4.77.0"),
// .package(path: "../SwiftLSP"),
.package(url: "https://github.com/codeface-io/SwiftLSP.git",
exact: "0.3.16"),
// .package(path: "../FoundationToolz"),
.package(url: "https://github.com/flowtoolz/FoundationToolz.git",
exact: "0.4.1"),
.package(url: "https://github.com/flowtoolz/SwiftyToolz.git",
exact: "0.5.1")
],
targets: [
.executableTarget(
name: "LSPService",
dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "FoundationToolz", package: "FoundationToolz"),
.product(name: "SwiftLSP", package: "SwiftLSP"),
.product(name: "SwiftyToolz", package: "SwiftyToolz")
],
path: "Sources",
swiftSettings: [
// Enable better optimizations when building in Release configuration. Despite the use of
// the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release
// builds. See <https://github.com/swift-server/guides#building-for-production> for details.
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
]
),
.testTarget(
name: "LSPServiceTests",
dependencies: [
.target(name: "LSPService"),
.product(name: "XCTVapor", package: "vapor"),
],
path: "Tests"
)
]
)