diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-06 14:12:03 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-06 14:12:03 +0200 |
| commit | a4b2398aba2211ce5901ceb46f73057864bd1707 (patch) | |
| tree | 99c3d277ad991c189bf342238509be59b36b7889 /build.zig | |
| parent | dccd1987b418e47b4b82eda3aeaed40be18d9e45 (diff) | |
add global registry
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 }, }, }), }); |