-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Package.swift
58 lines (54 loc) · 1.42 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
// swift-tools-version: 5.9
import PackageDescription
let settings: [SwiftSetting] = [
.enableExperimentalFeature("StrictConcurrency")
]
let package = Package(
name: "SwiftTreeSitter",
platforms: [
.macOS(.v10_13),
.macCatalyst(.v13),
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v5),
.visionOS(.v1),
],
products: [
.library(name: "SwiftTreeSitter", targets: ["SwiftTreeSitter"]),
.library(name: "SwiftTreeSitterLayer", targets: ["SwiftTreeSitterLayer"]),
],
dependencies: [
.package(url: "https://github.com/tree-sitter/tree-sitter", .upToNextMinor(from: "0.23.0")),
],
targets: [
.target(
name: "TestTreeSitterSwift",
path: "tree-sitter-swift",
sources: ["src/parser.c", "src/scanner.c"],
publicHeadersPath: "bindings/swift",
cSettings: [.headerSearchPath("src")]
),
.target(
name: "SwiftTreeSitter",
dependencies: [
.product(name: "TreeSitter", package: "tree-sitter"),
],
swiftSettings: settings
),
.testTarget(
name: "SwiftTreeSitterTests",
dependencies: ["SwiftTreeSitter", "TestTreeSitterSwift"],
swiftSettings: settings
),
.target(
name: "SwiftTreeSitterLayer",
dependencies: ["SwiftTreeSitter"],
swiftSettings: settings
),
.testTarget(
name: "SwiftTreeSitterLayerTests",
dependencies: ["SwiftTreeSitterLayer", "TestTreeSitterSwift"],
swiftSettings: settings
),
]
)