diff options
| author | Alexander Rolley <arolley35@gmail.com> | 2026-05-20 15:27:00 +0200 |
|---|---|---|
| committer | Alexander Rolley <arolley35@gmail.com> | 2026-05-20 15:27:00 +0200 |
| commit | 004b9941cbb703ceebb4804a6f0a2328889d38a8 (patch) | |
| tree | 1682cc344bcd856d88d32966a89aeadf8c93fb75 /build.zig | |
| parent | 37493d9907f1d7f224ca0b08245f5f3d5323c53c (diff) | |
Start on Sqlite3.
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -4,10 +4,17 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); - const db_mod = b.addModule("db", .{ + const sqlite_c = b.addTranslateC(.{ + .root_source_file = b.path("src/db/sqlite.h"), + .target = target, + .optimize = optimize, + }); + + var db_mod = b.addModule("db", .{ .root_source_file = b.path("src/db/root.zig"), .target = target, }); + db_mod.addImport("sqlite", sqlite_c.createModule()); const api_mod = b.addModule("api", .{ .root_source_file = b.path("src/api/root.zig"), |