Build SQLite with a minimal setup, using zig
git submodule add git@github.com:harmony-co/lightql.git
git submodule update --init --recursiveIn your build.zig.zon:
.dependencies = .{
.lightql = .{
.path = "lightql",
},
},And import it on your build.zig file:
const lightql = b.dependency("lightql", .{ .target = target, .optimize = optimize });
const exe = b.addExecutable(.{
.name = "your_project",
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.imports = &.{
.{ .name = "lightql", .module = lightql.module("lightql") },
},
}),
});
b.installArtifact(exe);