2023-11-12 00:21:50 +01:00
|
|
|
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",
|
2023-11-12 14:36:27 +01:00
|
|
|
#[cfg(feature = "nix")]
|
|
|
|
"nix",
|
|
|
|
#[cfg(feature = "agda")]
|
|
|
|
"agda",
|
2023-11-12 00:21:50 +01:00
|
|
|
] {
|
|
|
|
println!("cargo:rustc-link-lib=static=tree-sitter-{lang}");
|
|
|
|
}
|
|
|
|
}
|