36 lines
1.0 KiB
Swift
36 lines
1.0 KiB
Swift
// swift-tools-version:5.3
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "TreeSitterC",
|
|
platforms: [.macOS(.v10_13), .iOS(.v11)],
|
|
products: [
|
|
.library(name: "TreeSitterC", targets: ["TreeSitterC"]),
|
|
],
|
|
dependencies: [],
|
|
targets: [
|
|
.target(name: "TreeSitterC",
|
|
path: ".",
|
|
exclude: [
|
|
"binding.gyp",
|
|
"bindings",
|
|
"Cargo.toml",
|
|
"examples",
|
|
"grammar.js",
|
|
"LICENSE",
|
|
"Makefile",
|
|
"package.json",
|
|
"README.md",
|
|
"src/grammar.json",
|
|
"src/node-types.json",
|
|
],
|
|
sources: [
|
|
"src/parser.c",
|
|
],
|
|
resources: [
|
|
.copy("queries")
|
|
],
|
|
publicHeadersPath: "bindings/swift",
|
|
cSettings: [.headerSearchPath("src")])
|
|
]
|
|
) |