kak-tree/build.rs
2023-11-12 00:21:50 +01:00

52 lines
1.3 KiB
Rust

fn main() {
println!("cargo:rustc-link-search=native=lib");
for lang in &[
#[cfg(feature = "bash")]
"bash",
#[cfg(feature = "c_sharp")]
"c-sharp",
#[cfg(feature = "c")]
"c",
#[cfg(feature = "clojure")]
"clojure",
#[cfg(feature = "cpp")]
"cpp",
#[cfg(feature = "css")]
"css",
#[cfg(feature = "elm")]
"elm",
#[cfg(feature = "go")]
"go",
#[cfg(feature = "haskell")]
"haskell",
#[cfg(feature = "html")]
"html",
#[cfg(feature = "java")]
"java",
#[cfg(feature = "javascript")]
"javascript",
#[cfg(feature = "json")]
"json",
#[cfg(feature = "julia")]
"julia",
#[cfg(feature = "ocaml")]
"ocaml",
#[cfg(feature = "php")]
"php",
#[cfg(feature = "python")]
"python",
#[cfg(feature = "racket")]
"racket",
#[cfg(feature = "ruby")]
"ruby",
#[cfg(feature = "rust")]
"rust",
#[cfg(feature = "scala")]
"scala",
#[cfg(feature = "typescript")]
"typescript",
] {
println!("cargo:rustc-link-lib=static=tree-sitter-{lang}");
}
}