47 lines
1.4 KiB
Swift
Generated
47 lines
1.4 KiB
Swift
Generated
// 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
|
|
)
|