2023-05-20 20:38:20 -04:00
|
|
|
// swift-tools-version: 5.8
|
|
|
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
|
name: "TreeSitter",
|
|
|
|
|
products: [
|
|
|
|
|
// Products define the executables and libraries a package produces, and make them visible to other packages.
|
|
|
|
|
.library(
|
|
|
|
|
name: "TreeSitter",
|
|
|
|
|
targets: ["TreeSitter"]),
|
|
|
|
|
],
|
|
|
|
|
targets: [
|
|
|
|
|
.target(name: "TreeSitter",
|
|
|
|
|
path: "lib",
|
2024-07-29 16:06:12 +09:00
|
|
|
sources: ["src/lib.c"],
|
2024-10-04 23:15:17 -04:00
|
|
|
cSettings: [
|
|
|
|
|
.headerSearchPath("src"),
|
|
|
|
|
.define("_POSIX_C_SOURCE", to: "200112L"),
|
|
|
|
|
.define("_DEFAULT_SOURCE"),
|
|
|
|
|
]),
|
2024-02-28 18:49:12 +08:00
|
|
|
],
|
|
|
|
|
cLanguageStandard: .c11
|
2023-05-20 20:38:20 -04:00
|
|
|
)
|