-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Package.swift
52 lines (50 loc) · 1.35 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Neon",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.tvOS(.v13),
.watchOS(.v6),
.macCatalyst(.v13)
],
products: [
.library(name: "Neon", targets: ["Neon"]),
],
dependencies: [
.package(url: "https://github.com/ChimeHQ/SwiftTreeSitter", revision: "55f2c2fdaf859f86e4ea8513b9934badc7894019"),
.package(url: "https://github.com/ChimeHQ/Rearrange", from: "2.0.0"),
],
targets: [
.target(name: "RangeState", dependencies: ["Rearrange"]),
.testTarget(name: "RangeStateTests", dependencies: ["RangeState"]),
.target(
name: "Neon",
dependencies: [
"RangeState",
"Rearrange",
"TreeSitterClient",
.product(name: "SwiftTreeSitterLayer", package: "SwiftTreeSitter"),
]
),
.target(
name: "TreeSitterClient",
dependencies: [
"RangeState",
"Rearrange",
"SwiftTreeSitter",
.product(name: "SwiftTreeSitterLayer", package: "SwiftTreeSitter"),
]
),
.target(
name: "NeonTestsTreeSitterSwift",
path: "tree-sitter-swift",
sources: ["src/parser.c", "src/scanner.c"],
publicHeadersPath: "bindings/swift",
cSettings: [.headerSearchPath("src")]
),
.testTarget(name: "NeonTests", dependencies: ["Neon"]),
.testTarget(name: "TreeSitterClientTests", dependencies: ["TreeSitterClient", "NeonTestsTreeSitterSwift"])
]
)