Add sqlite/update jetzig
This commit is contained in:
parent
8a5666c4e9
commit
a3a5e37225
3 changed files with 20 additions and 4 deletions
12
build.zig
12
build.zig
|
|
@ -15,10 +15,20 @@ pub fn build(b: *std.Build) !void {
|
|||
// Example dependency:
|
||||
const iguanas_dep = b.dependency("iguanas", .{ .optimize = optimize, .target = target });
|
||||
exe.root_module.addImport("iguanas", iguanas_dep.module("iguanas"));
|
||||
|
||||
const sqlite = b.dependency("sqlite", .{
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
||||
exe.root_module.addImport("sqlite", sqlite.module("sqlite"));
|
||||
|
||||
// links the bundled sqlite3, so leave this out if you link the system one
|
||||
exe.linkLibrary(sqlite.artifact("sqlite"));
|
||||
|
||||
// All dependencies **must** be added to imports above this line.
|
||||
|
||||
try jetzig.jetzigInit(b, exe, .{});
|
||||
try jetzig.jetzigInit(b, exe, .{.zmpl_version = .v2});
|
||||
|
||||
b.installArtifact(exe);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue