feat!: update bindings
This commit is contained in:
committed by
Michael Hoffmann
parent
41a2e70241
commit
8b209bbb95
52
Package.swift
generated
52
Package.swift
generated
@@ -4,36 +4,32 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "TreeSitterHCL",
|
||||
platforms: [.macOS(.v10_13), .iOS(.v11)],
|
||||
products: [
|
||||
.library(name: "TreeSitterHCL", targets: ["TreeSitterHCL"]),
|
||||
],
|
||||
dependencies: [],
|
||||
dependencies: [
|
||||
.package(name: "SwiftTreeSitter", url: "https://github.com/tree-sitter/swift-tree-sitter", from: "0.9.0"),
|
||||
],
|
||||
targets: [
|
||||
.target(name: "TreeSitterHCL",
|
||||
path: ".",
|
||||
exclude: [
|
||||
"binding.gyp",
|
||||
"bindings",
|
||||
"Cargo.toml",
|
||||
"CHANGELOG.md",
|
||||
"docs",
|
||||
"example",
|
||||
"grammar.js",
|
||||
"LICENSE",
|
||||
"package.json",
|
||||
"README.md",
|
||||
"shell.nix",
|
||||
"src/grammar.json",
|
||||
"src/node-types.json",
|
||||
"test",
|
||||
],
|
||||
sources: [
|
||||
"src/parser.c",
|
||||
"src/scanner.c",
|
||||
],
|
||||
publicHeadersPath: "bindings/swift",
|
||||
cSettings: [.headerSearchPath("src")],
|
||||
linkerSettings: [.linkedLibrary("c++")])
|
||||
]
|
||||
.target(
|
||||
name: "TreeSitterHCL",
|
||||
dependencies: [],
|
||||
path: ".",
|
||||
sources: [
|
||||
"src/parser.c",
|
||||
"src/scanner.c"
|
||||
],
|
||||
publicHeadersPath: "bindings/swift",
|
||||
cSettings: [.headerSearchPath("src")]
|
||||
),
|
||||
.testTarget(
|
||||
name: "TreeSitterHCLTests",
|
||||
dependencies: [
|
||||
"SwiftTreeSitter",
|
||||
"TreeSitterHCL",
|
||||
],
|
||||
path: "bindings/swift/TreeSitterHCLTests"
|
||||
)
|
||||
],
|
||||
cLanguageStandard: .c11
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user