mirror of
https://github.com/elladunbar/tree-sitter-hy.git
synced 2025-11-05 14:59:55 -06:00
Initial commit
This commit is contained in:
commit
a0e03ddd73
31 changed files with 948 additions and 0 deletions
41
Package.swift
generated
Normal file
41
Package.swift
generated
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
// swift-tools-version:5.3
|
||||
|
||||
import Foundation
|
||||
import PackageDescription
|
||||
|
||||
var sources = ["src/parser.c"]
|
||||
if FileManager.default.fileExists(atPath: "src/scanner.c") {
|
||||
sources.append("src/scanner.c")
|
||||
}
|
||||
|
||||
let package = Package(
|
||||
name: "TreeSitterHy",
|
||||
products: [
|
||||
.library(name: "TreeSitterHy", targets: ["TreeSitterHy"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/tree-sitter/swift-tree-sitter", from: "0.8.0"),
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "TreeSitterHy",
|
||||
dependencies: [],
|
||||
path: ".",
|
||||
sources: sources,
|
||||
resources: [
|
||||
.copy("queries")
|
||||
],
|
||||
publicHeadersPath: "bindings/swift",
|
||||
cSettings: [.headerSearchPath("src")]
|
||||
),
|
||||
.testTarget(
|
||||
name: "TreeSitterHyTests",
|
||||
dependencies: [
|
||||
"SwiftTreeSitter",
|
||||
"TreeSitterHy",
|
||||
],
|
||||
path: "bindings/swift/TreeSitterHyTests"
|
||||
)
|
||||
],
|
||||
cLanguageStandard: .c11
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue