38 lines
1 KiB
Swift
38 lines
1 KiB
Swift
|
|
// swift-tools-version:5.3
|
||
|
|
import PackageDescription
|
||
|
|
|
||
|
|
let package = Package(
|
||
|
|
name: "TreeSitterPerga",
|
||
|
|
products: [
|
||
|
|
.library(name: "TreeSitterPerga", targets: ["TreeSitterPerga"]),
|
||
|
|
],
|
||
|
|
dependencies: [
|
||
|
|
.package(url: "https://github.com/ChimeHQ/SwiftTreeSitter", from: "0.8.0"),
|
||
|
|
],
|
||
|
|
targets: [
|
||
|
|
.target(
|
||
|
|
name: "TreeSitterPerga",
|
||
|
|
dependencies: [],
|
||
|
|
path: ".",
|
||
|
|
sources: [
|
||
|
|
"src/parser.c",
|
||
|
|
// NOTE: if your language has an external scanner, add it here.
|
||
|
|
],
|
||
|
|
resources: [
|
||
|
|
.copy("queries")
|
||
|
|
],
|
||
|
|
publicHeadersPath: "bindings/swift",
|
||
|
|
cSettings: [.headerSearchPath("src")]
|
||
|
|
),
|
||
|
|
.testTarget(
|
||
|
|
name: "TreeSitterPergaTests",
|
||
|
|
dependencies: [
|
||
|
|
"SwiftTreeSitter",
|
||
|
|
"TreeSitterPerga",
|
||
|
|
],
|
||
|
|
path: "bindings/swift/TreeSitterPergaTests"
|
||
|
|
)
|
||
|
|
],
|
||
|
|
cLanguageStandard: .c11
|
||
|
|
)
|