From a5ca46271850eb39cd48ad2eb6ee675a2e36e9c3 Mon Sep 17 00:00:00 2001 From: patrick-scho Date: Sun, 9 Feb 2025 22:23:51 +0100 Subject: [PATCH] Add http as external dependency --- build.zig | 5 +++++ build.zig.zon | 3 +++ 2 files changed, 8 insertions(+) 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", + }, }, } -- 2.50.1