diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-21 16:04:53 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-21 16:04:53 +0200 |
| commit | 79ba17323c33c7e7e6b4b3ef526db85f1cf9c086 (patch) | |
| tree | aa5e2f6b6d21ccf6d9f24779e87d7d3c65def345 /build.zig | |
| parent | 78ba18b890655b12650afedac3a9d57ef95567d0 (diff) | |
| parent | a9b6b2495de6c97fd17b37885dd99d8557a9ea0e (diff) | |
Merge branch 'develop' of https://gitlab.com/Jockerkat/memora into dev
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -4,10 +4,18 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); + const sqlite_c = b.addTranslateC(.{ + .root_source_file = b.path("src/db/sqlite.h"), + .target = target, + .optimize = optimize, + }); + sqlite_c.linkSystemLibrary("sqlite3", .{}); + const 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"), |