tree-sitter-d2/Package.swift

48 lines
1.4 KiB
Swift
Raw Normal View History

2024-07-12 20:36:24 +03:00
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "TreeSitterD2",
products: [
.library(name: "TreeSitterD2", targets: ["TreeSitterD2"]),
],
dependencies: [],
targets: [
.target(name: "TreeSitterD2",
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
)