Bruno BELANYI
1af33aeea1
This means regenerating all the tree-sitter files, and adding newly generated outputs (mostly new bindings). The `--apply-all-captures` flag has been removed, it is now the default (and only) matching behaviour.
49 lines
1.5 KiB
Swift
49 lines
1.5 KiB
Swift
// swift-tools-version:5.3
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "TreeSitterBp",
|
|
platforms: [.macOS(.v10_13), .iOS(.v11)],
|
|
products: [
|
|
.library(name: "TreeSitterBp", targets: ["TreeSitterBp"]),
|
|
],
|
|
dependencies: [],
|
|
targets: [
|
|
.target(name: "TreeSitterBp",
|
|
path: ".",
|
|
exclude: [
|
|
"Cargo.toml",
|
|
"Makefile",
|
|
"binding.gyp",
|
|
"bindings/c",
|
|
"bindings/go",
|
|
"bindings/node",
|
|
"bindings/python",
|
|
"bindings/rust",
|
|
"prebuilds",
|
|
"grammar.js",
|
|
"package.json",
|
|
"package-lock.json",
|
|
"pyproject.toml",
|
|
"setup.py",
|
|
"test",
|
|
"examples",
|
|
".editorconfig",
|
|
".github",
|
|
".gitignore",
|
|
".gitattributes",
|
|
".gitmodules",
|
|
],
|
|
sources: [
|
|
"src/parser.c",
|
|
// NOTE: if your language has an external scanner, add it here.
|
|
],
|
|
resources: [
|
|
.copy("queries")
|
|
],
|
|
publicHeadersPath: "bindings/swift",
|
|
cSettings: [.headerSearchPath("src")])
|
|
],
|
|
cLanguageStandard: .c11
|
|
)
|