-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
50 lines (48 loc) · 1.63 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.9
import PackageDescription
let package = Package(
name: "Bag Notation",
platforms: [.macOS(.v13)],
products: [
.library(name: "BagNotation", targets: ["BagNotation"]),
.library(name: "TreeSitterBagNotation", targets: ["TreeSitterBagNotation"])
],
dependencies: [
.package(url: "https://github.com/ChimeHQ/SwiftTreeSitter", "0.8.0" ..< "0.9.0"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0")
],
targets: [
.executableTarget(
name: "bag",
dependencies: [
"BagNotation",
.product(name: "ArgumentParser", package: "swift-argument-parser")
],
path: "Sources/Bag"),
.target(
name: "BagNotation",
dependencies: [
"SwiftTreeSitter",
"TreeSitterBagNotation"
]),
.testTarget(name: "BagNotationTests", dependencies: ["BagNotation"]),
.target(
name: "TreeSitterBagNotation",
path: "tree-sitter-bag-notation",
exclude: [
"binding.gyp",
"bindings",
"Cargo.toml",
"corpus",
"grammar.js",
"package.json",
"package-lock.json",
"node_modules",
"src/grammar.json",
"src/node-types.json"
],
sources: ["src/parser.c"],
resources: [.copy("queries")],
publicHeadersPath: "bindings/swift",
cSettings: [.headerSearchPath("src")])
])