-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Package.swift
52 lines (51 loc) · 1.43 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:5.3
import PackageDescription
let package = Package(
name: "TreeSitterXML",
products: [
.library(name: "TreeSitterXML", targets: ["TreeSitterXML", "TreeSitterDTD"]),
],
dependencies: [
.package(url: "https://github.com/ChimeHQ/SwiftTreeSitter", from: "0.8.0"),
],
targets: [
.target(
name: "TreeSitterXML",
dependencies: [],
path: ".",
sources: [
"xml/src/parser.c",
"xml/src/scanner.c",
],
resources: [
.copy("queries/xml")
],
publicHeadersPath: "bindings/swift/xml",
cSettings: [.headerSearchPath("xml/src")]
),
.target(
name: "TreeSitterDTD",
dependencies: [],
path: ".",
sources: [
"dtd/src/parser.c",
"dtd/src/scanner.c",
],
resources: [
.copy("queries/dtd")
],
publicHeadersPath: "bindings/swift/dtd",
cSettings: [.headerSearchPath("dtd/src")]
),
.testTarget(
name: "TreeSitterXMLTests",
dependencies: [
"SwiftTreeSitter",
"TreeSitterXML",
"TreeSitterDTD",
],
path: "bindings/swift/TreeSitterXMLTests"
)
],
cLanguageStandard: .c11
)