Skip to content

Commit

Permalink
SPM support
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Oct 18, 2022
1 parent 769d7a0 commit b85714e
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ target/
.nyc_output/
crash.txt
fuzz/aflplusplus/out
/.build/
43 changes: 43 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// swift-tools-version:5.3

import PackageDescription

let package = Package(
name: "TreeSitterSSHClientConfig",
platforms: [.macOS(.v10_13), .iOS(.v11)],
products: [
.library(name: "TreeSitterSSHClientConfig", targets: ["TreeSitterSSHClientConfig"]),
],
dependencies: [],
targets: [
.target(name: "TreeSitterSSHClientConfig",
path: ".",
exclude: [
"binding.gyp",
"bindings",
"Cargo.lock",
"Cargo.toml",
"CITATION.cff",
"dev",
"examples",
"fuzz",
"grammar.js",
"LICENSE",
"Makefile",
"package.json",
"package-lock.json",
"README.md",
"src/grammar.json",
"src/node-types.json",
"test",
],
sources: [
"src/parser.c",
],
resources: [
.copy("queries")
],
publicHeadersPath: "bindings/swift",
cSettings: [.headerSearchPath("src")])
]
)
16 changes: 16 additions & 0 deletions bindings/swift/TreeSitterSSHClientConfig/sshclientconfig.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef TREE_SITTER_SSHCLIENTCONFIG_H_
#define TREE_SITTER_SSHCLIENTCONFIG_H_

typedef struct TSLanguage TSLanguage;

#ifdef __cplusplus
extern "C" {
#endif

extern TSLanguage *tree_sitter_sshclientconfig();

#ifdef __cplusplus
}
#endif

#endif // TREE_SITTER_SSHCLIENTCONFIG_H_

0 comments on commit b85714e

Please sign in to comment.