2023-04-28 23:14:50 -04:00
|
|
|
const std = @import("std");
|
|
|
|
|
|
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
|
|
|
var lib = b.addStaticLibrary(.{
|
|
|
|
|
.name = "tree-sitter",
|
|
|
|
|
.target = b.standardTargetOptions(.{}),
|
|
|
|
|
.optimize = b.standardOptimizeOption(.{}),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
lib.linkLibC();
|
2023-08-24 12:43:53 -05:00
|
|
|
lib.addCSourceFile(.{ .file = .{ .path = "lib/src/lib.c" }, .flags = &.{} });
|
|
|
|
|
lib.addIncludePath(.{ .path = "lib/include" });
|
|
|
|
|
lib.addIncludePath(.{ .path = "lib/src" });
|
2023-04-28 23:14:50 -04:00
|
|
|
|
|
|
|
|
b.installArtifact(lib);
|
|
|
|
|
}
|