diff options
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 }, }, }), }); |