Update to latest Jetzig

This commit is contained in:
mitteneer 2024-09-14 11:04:27 -04:00
parent 0c59f29509
commit 348545949a
5 changed files with 11 additions and 95 deletions

View file

@ -7,24 +7,12 @@ pub fn build(b: *std.Build) !void {
const exe = b.addExecutable(.{
.name = "zuletzt",
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
// 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.
@ -41,7 +29,7 @@ pub fn build(b: *std.Build) !void {
run_step.dependOn(&run_cmd.step);
const lib_unit_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
@ -49,7 +37,7 @@ pub fn build(b: *std.Build) !void {
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
const exe_unit_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});