abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.zig5
-rw-r--r--build.zig.zon3
2 files changed, 8 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 64b9c09..c49960c 100644
--- a/build.zig
+++ b/build.zig
@@ -30,6 +30,11 @@ pub fn build(b: *std.Build) void {
epoll.root_module.addImport("lmdb", lmdb_mod);
epoll.linkLibC();
+ const http = b.dependency("http", .{ .target = target, .optimize = optimize });
+ const http_mod = http.module("http");
+ // lmdb_mod.omit_frame_pointer = false;
+ exe.root_module.addImport("http", http_mod);
+
b.installArtifact(exe);
const run_cmd = b.addRunArtifact(exe);
diff --git a/build.zig.zon b/build.zig.zon
index ab8c6ab..4d2cc1f 100644
--- a/build.zig.zon
+++ b/build.zig.zon
@@ -12,5 +12,8 @@
// .hash = "122001bacb21ad7eb237531fb218962270a178c52893bbfd9c5ce493232747e652e2",
.path = "../ziglmdb",
},
+ .http = .{
+ .path = "../zighttp",
+ },
},
}