aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-06 14:12:03 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-06 14:12:03 +0200
commita4b2398aba2211ce5901ceb46f73057864bd1707 (patch)
tree99c3d277ad991c189bf342238509be59b36b7889 /build.zig
parentdccd1987b418e47b4b82eda3aeaed40be18d9e45 (diff)
add global registry
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig11
1 files changed, 5 insertions, 6 deletions
diff --git a/build.zig b/build.zig
index 11ab41b..8e12ec1 100644
--- a/build.zig
+++ b/build.zig
@@ -6,10 +6,6 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
- const site: AppBundle = .init(b, .{
- .root_source_file = b.path("src/app/root.zig"),
- });
-
const sqlite_c = b.addTranslateC(.{
.root_source_file = b.path("src/db/sqlite.h"),
.target = target,
@@ -46,7 +42,10 @@ pub fn build(b: *std.Build) void {
});
z_mod.addImport("html", html_mod);
- site.mod.addImport("z", z_mod);
+ const site: AppBundle = .init(b, .{
+ .root_source_file = b.path("src/app/root.zig"),
+ .target = target,
+ }, z_mod);
const exe = b.addExecutable(.{
.name = "memora",
@@ -59,7 +58,7 @@ pub fn build(b: *std.Build) void {
.{ .name = "api", .module = api_mod },
.{ .name = "html", .module = html_mod },
.{ .name = "http", .module = http_mod },
- .{ .name = "z", .module = z_mod },
+ .{ .name = "site", .module = site.mod },
},
}),
});