Skip to content

Commit

Permalink
upgrade to sqlite 3.46.1, move files around
Browse files Browse the repository at this point in the history
  • Loading branch information
karlseguin committed Sep 12, 2024
1 parent 92b98c9 commit 7876fcf
Show file tree
Hide file tree
Showing 5 changed files with 5,949 additions and 3,578 deletions.
11 changes: 7 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@ pub fn build(b: *std.Build) !void {
const default_sqlite3_build = [_][]const u8{"-std=c99"};
const sqlite3_build = b.option([]const []const u8, "sqlite3", "options to use when compiling sqlite3") orelse &default_sqlite3_build;

_ = b.addModule("zqlite", .{
const lib_path = b.path("lib");

const zqlite = b.addModule("zqlite", .{
.root_source_file = b.path("zqlite.zig"),
});
zqlite.addIncludePath(lib_path);

const lib_test = b.addTest(.{
.root_source_file = b.path("zqlite.zig"),
.target = target,
.optimize = optimize,
.test_runner = b.path("test_runner.zig"),
.root_source_file = b.path("zqlite.zig"),
});
lib_test.addCSourceFile(.{
.file = b.path("lib/sqlite3/sqlite3.c"),
.file = b.path("lib/sqlite3.c"),
.flags = sqlite3_build,
});
lib_test.addIncludePath(b.path("lib/sqlite3/"));
lib_test.linkLibC();

const run_test = b.addRunArtifact(lib_test);
Expand Down
Loading

0 comments on commit 7876fcf

Please sign in to comment.